title: How to get mask of rows for a time range in pandas series?
body: <p>I have a <code>pandas</code> <code>DataFrame</code> with date column named <code>SDate</code>, I would like to find the rows for which <code>SDate</code>'s hour is between 2 and 4 pm, something like :</p>
  
  <pre><code>d=pd.read_csv("data.csv",parse_dates=['SDate'])
  indices=np.nonzero(d.SDate.hour&gt;=2&amp;d.SDate.hour&lt;=4)[0]
  </code></pre>
  
  <p>but this doesnt work like that. how to do it in the most pandas and pythonic way?</p>