Array এর ডেটা টাইপ জানা:

a = np.array([1, 2, 3])
print(a.dtype)
output :
int32

NumPy data types

Except for basic data types in Python, there are also some different data types in NumPy arrays. Here are the most common ones:

  • i – integer

  • ? – boolean

  • u – unsigned integer

  • f – float

  • c – complex float

  • m – timedelta

  • M – datetime

  • O – Python object

  • S – string

Last updated