I have a numpy structured array with one of the columns called ‘time’ I want to restrict my data where the 'time' column is in a certain range. I tried this:
time_restricted_data = Data[ (Data['time'] > 0.6) & (Data['time'] < 0.7) ]
But that returned all the data where Data['time'] > 0.6.
Any suggestions?
Something is wrong in your example, i.e. I can’t confirm it, and I think what you wrote should work as expected: