title: How to get the closest single row after a specific datetime index using Python Pandas
body: <p>DataFrame I have:</p>
  
  <pre><code>            A   B   C 
  2012-01-01  1   2   3 
  2012-01-05  4   5   6 
  2012-01-10  7   8   9 
  2012-01-15  10  11  12 
  </code></pre>
  
  <p>What I am using now:</p>
  
  <pre><code>date_after = dt.datetime( 2012, 1, 7 )
  frame.ix[date_after:].ix[0:1]
  Out[1]: 
              A  B  C
  2012-01-10  7  8  9
  </code></pre>
  
  <p>Is there any better way of doing this?  I do not like that I have to specify .ix[0:1] instead of .ix[0], but if I don't the output changes to a TimeSeries instead of a single row in a DataFrame.  I find it harder to work with a rotated TimeSeries back on top of the original DataFrame.</p>
  
  <p>Without <code>.ix[0:1]</code>:</p>
  
  <pre><code>frame.ix[date_after:].ix[0]
  Out[1]: 
  A    7
  B    8
  C    9
  Name: 2012-01-10 00:00:00
  </code></pre>
  
  <p>Thanks,</p>
  
  <p>John</p>