title: NumPy Array Indexing
body: <p>Simple question here about indexing an array to get a subset of its values.  Say I have a <code>recarray</code> which holds ages in one space, and corresponding values in another.  I also have an array which is my desired subset of ages.  Here is what I mean:</p>
  
  <pre><code>ages = np.arange(100)
  values = np.random.uniform(low=0, high= 1, size = ages.shape)
  data = np.core.rec.fromarrays([ages, values], names='ages,values')
  desired_ages = np.array([1,4, 16, 29, 80])
  </code></pre>
  
  <p>What I'm trying to do is something like this:</p>
  
  <pre><code>data.values[data.ages==desired_ages]
  </code></pre>
  
  <p>But, it's not working.</p>