arkouda.numpy.utils¶
Functions¶
|
Return the shape of an array. |
Module Contents¶
- arkouda.numpy.utils.shape(a: arkouda.numpy.pdarrayclass.pdarray | arkouda.numpy.strings.Strings | arkouda.numpy.dtypes.all_scalars) Tuple[source]¶
Return the shape of an array.
- Parameters:
a (pdarray, Strings, or all_scalars) – Input array.
- Returns:
The elements of the shape tuple give the lengths of the corresponding array dimensions.
- Return type:
Tuple
Examples
>>> import arkouda as ak >>> ak.shape(ak.eye(3,2)) (3, 2) >>> ak.shape([[1, 3]]) (1, 2) >>> ak.shape([0]) (1,) >>> ak.shape(0) ()