title: python np.where equivalent
body: <p>My python skills are not sophisticated but how do I use numpy where to get the elements rather than the indices here? </p>
  
  <p>So in the example below (with mock data), I want the same results from where that the loop gives?</p>
  
  <pre><code>import numpy as np
  
  #make some mock data
  test=np.ones((10,10))
  for i in range(0,10):
      for j in range(0,10):
         test[i,j]=i*2.0+j
  
  for i in range(0,10):
      if 8.0&lt;=test[i,5]&lt;=18.0:
              print test[i,5]
  
  print np.where((test[:,5] &gt;= 8.0) &amp; (test[:,5] &lt;=18.0)) 
  </code></pre>