I'm trying to find the indices of all elements in an array that are greater than a but less than b. It's probably just a problem with my syntax but this doesn't work:
numpy.where((my_array > a) and (my_array < b))
How should I fix this? Or is there a better way to do it?
Thanks!