numpy / 1.16.1 / generated / numpy.dtype.ndim.html /

numpy.dtype.ndim

attribute

dtype.ndim

Number of dimensions of the sub-array if this data type describes a sub-array, and 0 otherwise.

New in version 1.13.0.

© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.16.1/reference/generated/numpy.dtype.ndim.html