Data Types
import numpy as npSigned 64-bit integer types
np.int64int
np.full((3, 3), 4.001, dtype=np.int64)array([[4, 4, 4],
[4, 4, 4],
[4, 4, 4]])
Standard double-precision floating point
np.float32numpy.float32
np.full((3, 3), 4.032, dtype=np.float32)array([[4.032, 4.032, 4.032],
[4.032, 4.032, 4.032],
[4.032, 4.032, 4.032]], dtype=float32)
Compllex numbers represented by 128 floats
np.complexcomplex
Boolean type storing TRUE and FALSE values
np.boolbool
np.eye(3, dtype=np.bool)array([[ True, False, False],
[False, True, False],
[False, False, True]])