Section Navigation
ndarray
dtype
ufunc
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
>>>importnumpyasnp>>>dt=np.dtype(str)>>>dt.num19
>>>dt=np.dtype(float)>>>dt.num12
dtype.num