An array, any object exposing the array interface, an object whose __array__ method returns an array, or any (nested) sequence.
The desired data-type for the array. If not given, then the type will be determined as the minimum type required to hold the objects in the sequence. This argument can only be used to âupcastâ the array. For downcasting, use the .astype(t) method.
If true (default), then the object is copied. Otherwise, a copy will only be made if __array__ returns a copy, if obj is a nested sequence, or if a copy is needed to satisfy any of the other requirements (dtype
, order, etc.).
Specify the memory layout of the array. If object is not an array, the newly created array will be in C order (row major) unless âFâ is specified, in which case it will be in Fortran order (column major). If object is an array the following holds.
order no copy copy=True âKâ unchanged F & C order preserved, otherwise most similar order âAâ unchanged F order if input is F and not C, otherwise C order âCâ C order C order âFâ F order F orderWhen copy=False
and a copy is made for other reasons, the result is the same as if copy=True
, with some exceptions for A, see the Notes section. The default order is âKâ.
If True, then sub-classes will be passed-through, otherwise the returned array will be forced to be a base-class array (default).
Specifies the minimum number of dimensions that the resulting array should have. Ones will be pre-pended to the shape as needed to meet this requirement.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4