Section Navigation
ndarray
dtype
ufunc
numpy.typing
numpy.distutils
attribute
Returns dtype for the base element of the subarrays,regardless of their dimension or shape.
See also
dtype.subdtype
Examples
>>>importnumpyasnp>>>x=np.dtype('8f')>>>x.basedtype('float32')
>>>x=np.dtype('i2')>>>x.basedtype('int16')
dtype.base