ndarray
dtype
numpy.ma
ufunc
numpy.ctypeslib
numpy.dual
numpy.emath
numpy.fft
numpy.linalg
numpy.matlib
numpy.polynomial.polynomial
numpy.polynomial.chebyshev
numpy.polynomial.hermite
numpy.polynomial.hermite_e
numpy.polynomial.laguerre
numpy.polynomial.legendre
numpy.random
numpy.testing
numpy.typing
numpy.distutils
attribute
Shape tuple of the sub-array if this data type describes a sub-array, and () otherwise.
()
Examples
>>> dt = np.dtype(('i4', 4)) >>> dt.shape (4,)
>>> dt = np.dtype(('i4', (2, 3))) >>> dt.shape (2, 3)
previous
numpy.dtype.subdtype
next
numpy.dtype.hasobject