Issue TypeError: ‘numpy.float64’ object cannot be interpreted as an integer
# 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]))