attribute
Returns dtype for the base element of the subarrays, regardless of their dimension or shape.
See also
>>> import numpy as np
>>> x = np.dtype('8f')
>>> x.base
dtype('float32')
>>> x = np.dtype('i2')
>>> x.base
dtype('int16')
© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.4/reference/generated/numpy.dtype.base.html