Checking the data type of array using Numpy. For data science using Python in Anaconda - Jupyter

import numpy as np

type1 = np.array([123456])
type2 = np.array([1.52.50.56])
type3 = np.array(['a''b''c'])
type4 = np.array(["Canada""Australia"], dtype='U5')
type5 = np.array([555666], dtype=float)

print(type1.dtype)
print(type2.dtype)
print(type3.dtype)
print(type4.dtype)
print(type5.dtype)



Output:-
int64 float64 <U1 <U5 float64