Mobeer
0
Q:

np as type

# change the dtype to 'float64' 
arr = arr.astype('float64') 
  
# Print the array after changing 
# the data type 
print(arr) 
  
# Also print the data type 
print(arr.dtype) 
2
>>> x.astype(int)
array([1, 2, 2])
0

New to Communities?

Join the community