numpy.dtype.kind — NumPy v2.2 Manual (original) (raw)
attribute
dtype.kind#
A character code (one of ‘biufcmMOSUV’) identifying the general kind of data.
Examples
import numpy as np dt = np.dtype('i4') dt.kind 'i' dt = np.dtype('f8') dt.kind 'f' dt = np.dtype([('field1', 'f8')]) dt.kind 'V'