title: How to use numpy.where with logical operators
body: <p>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:</p>
  
  <pre><code>numpy.where((my_array &gt; a) and (my_array &lt; b))
  </code></pre>
  
  <p>How should I fix this? Or is there a better way to do it?</p>
  
  <p>Thanks!</p>