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