Data Types

import numpy as np

Signed 64-bit integer types

np.int64
int
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.float32
numpy.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.complex
complex

Boolean type storing TRUE and FALSE values

np.bool
bool
np.eye(3, dtype=np.bool)
array([[ True, False, False],
       [False,  True, False],
       [False, False,  True]])