Data type classes (numpy.dtypes)#
This module is home to specific dtypes related functionality and their classes.For more general information about dtypes, also seenumpy.dtype andData type objects (dtype).
Similar to the builtintypes module, this submodule defines types (classes)that are not widely used directly.
New in version NumPy:1.25
The dtypes module is new in NumPy 1.25. Previously DType classes wereonly accessible indirectly.
DType classes#
The following are the classes of the corresponding NumPy dtype instances andNumPy scalar types. The classes can be used inisinstance checks and canalso be instantiated or used directly. Direct use of these classes is nottypical, since their scalar counterparts (e.g.np.float64) or stringslike"float64" can be used.
Boolean#
Bit-sized integers#
C-named integers (may be aliases)#
Floating point#
Complex#
Strings and Bytestrings#
Times#
Others#
On this page