title: Accessing object methods in numpy.where?
body: <p>I have data in a numpy array (read from a .csv file). The relevant extract from np.genfromtxt is:</p>
  
  <pre><code>dtype = [("Category", "|S10"),
           ("Status", "|S11"),
           ("Date_start", object),
           ("Date_stop", object)],
  names=True,
  converters={2:lambda d:datetime.strptime(d, "%d/%m/%y"),
              3:lambda d:datetime.strptime(d, "%d/%m/%y")}
  )
  </code></pre>
  
  <p>Everything works with one exception — accessing elements of the datetime objects. The following two lines of code return exactly what I expect:</p>
  
  <pre><code>print inp['Date_start'][1].month #returns 7
  print np.where(inp['Category'] == '"R5"') #returns an array of matching indices
  </code></pre>
  
  <p>but the following line of code throws an <code>AttributeError: 'numpy.ndarray' object has no attribute 'month'</code></p>
  
  <pre><code>print np.where(inp['Date_start'].month == 7)
  </code></pre>
  
  <p>This means I can't return results based on which month things occurred in, which I need to.</p>
  
  <p>Is there any way to get the behaviour I want from np.where?</p>