title: Select Pandas dataframe rows based on 'hour' datetime
body: <p>I have a pandas dataframe 'df' with a column 'DateTimes' of type datetime.time.</p>
  
  <p>The entries of that column are hours of a single day:</p>
  
  <pre><code>00:00:00
  .
  .
  .
  23:59:00
  </code></pre>
  
  <p>Seconds are skipped, it counts by minutes.</p>
  
  <p>How can I choose rows by hour, for example the rows between 00:00:00 and 00:01:00?</p>
  
  <hr>
  
  <p>If I try this: </p>
  
  <pre><code>df.between_time('00:00:00', '00:00:10')
  </code></pre>
  
  <p>I get an error that index must be a DateTimeIndex.</p>
  
  <p>I set the index as such with:</p>
  
  <pre><code>df=df.set_index(keys='DateTime')
  </code></pre>
  
  <p>but I get the same error. </p>
  
  <p>I can't seem to get 'loc' to work either. Any suggestions?</p>