i have asked something slimier before for 1 condition and it was a simple answer and works great. change every value in a numpy array with a condition
now i am trying to find a way to do the same with two conditions.
for j in range(5,45):
# inter_data[(j*100) <= inter_data < ((j+1)*100)] = (j*100) + 50
inter_data = np.where(((j + 1) * 100) > inter_data > (j * 100), (j * 100) + 50, inter_data)
i tried using the same technique and it doesn't work. seems like this can only work with one condition.
it gives the following error for two conditions
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()