I have a collection of data on which i would like to apply while loop but i got an error
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
import numpy as np
data = np.loadtxt('data4.txt')
i=np.array(data[:,1]) #column having thousand values
j=7/2
f = i-j
while f <= i+j:
print(f)
f = f+1