Masalah typeerror: numpy.float64 objek tidak dapat diartikan sebagai bilangan bulat

# import numpy library
import numpy as np

# create array of values in pandas
my_array = np.array([2.5, 6.4, 2.1, 7.4, 8.9, 1.1])

#  print the range of values using for loop
for i in range(len(my_array)):
    print(range(my_array[i]))
Gorgeous Gazelle