Array conversion tolist

The contents of self as a nested list. gt gt gt a array 1,2,3 , 4,5,6 print a.tolist 1, 2, 3 , 4, 5, 6 If no arguments are passed in, then this method only works for arrays with one element a.size 1 . In this case, it returns a standard Python scalar object if possible copied from the first element of self. When the data type of self is longdouble or clongdouble, this returns a scalar array object because there is no available Python scalar that would not lose information. Void arrays return a...

Shape functions

Force a sequence of arrays including array scalars to each be at least 1-d. Force a sequence of arrays including array scalars to each be at least 2-d. Dimensions of length 1 are pre-pended to reach a two-dimensional array. Force a sequence of arrays including array .scalars to each be at least 3-d. Dimensions of length 1 are pre-pended to reach a two-dimensional array. Return a new array with the contents of arr shifted rolled by the amount given in the integer argument shift along the axis...