ndim#

named_arrays.ndim(a)#

Compute the number of dimensions of the argument.

Parameters:

a (AbstractArray) – An array-like object

Return type:

int

See also

numpy.ndim()

Corresponding numpy function.