1/16/2021 NumPy - Data Types - Tutorialspoint
NumPy - Data Types
NumPy supports a much greater variety of numerical types than Python does. The following table
shows different scalar data types defined in NumPy.
https://www.tutorialspoint.com/numpy/numpy_data_types.htm 1/7
, 1/16/2021 NumPy - Data Types - Tutorialspoint
Sr.No. Data Types & Description
1
bool_
Boolean (True or False) stored as a byte
2
int_
Default integer type (same as C long; normally either int64 or int32)
3 intc
Identical to C int (normally int32 or int64)
4
intp
Integer used for indexing (same as C ssize_t; normally either int32 or int64)
5 int8
Byte (-128 to 127)
6
int16
Integer (-32768 to 32767)
7
int32
Integer (-2147483648 to 2147483647)
8 int64
Integer (-9223372036854775808 to 9223372036854775807)
9 uint8
Unsigned integer (0 to 255)
10 uint16
Unsigned integer (0 to 65535)
11
uint32
https://www.tutorialspoint.com/numpy/numpy_data_types.htm 2/7
NumPy - Data Types
NumPy supports a much greater variety of numerical types than Python does. The following table
shows different scalar data types defined in NumPy.
https://www.tutorialspoint.com/numpy/numpy_data_types.htm 1/7
, 1/16/2021 NumPy - Data Types - Tutorialspoint
Sr.No. Data Types & Description
1
bool_
Boolean (True or False) stored as a byte
2
int_
Default integer type (same as C long; normally either int64 or int32)
3 intc
Identical to C int (normally int32 or int64)
4
intp
Integer used for indexing (same as C ssize_t; normally either int32 or int64)
5 int8
Byte (-128 to 127)
6
int16
Integer (-32768 to 32767)
7
int32
Integer (-2147483648 to 2147483647)
8 int64
Integer (-9223372036854775808 to 9223372036854775807)
9 uint8
Unsigned integer (0 to 255)
10 uint16
Unsigned integer (0 to 65535)
11
uint32
https://www.tutorialspoint.com/numpy/numpy_data_types.htm 2/7