numpy.dtype.base#

attribute

dtype.base#

Returns dtype for the base element of the subarrays,regardless of their dimension or shape.

Examples

>>>importnumpyasnp>>>x=np.dtype('8f')>>>x.basedtype('float32')
>>>x=np.dtype('i2')>>>x.basedtype('int16')
On this page