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
A unique number for each of the 21 different built-in types.
These are roughly ordered from least-to-most precision.
Examples
>>> dt = np.dtype(str) >>> dt.num 19
>>> dt = np.dtype(float) >>> dt.num 12
previous
numpy.dtype.char
next
numpy.dtype.str