title: Nearest Date in a Column
body: <p>I have a DataFrame</p>
  
  <pre><code>       Date
  9.0    2016-03-14
  8.0    2016-03-15
  7.0    2016-03-16
  6.0    2016-03-17
  5.0    2016-03-18
  4.0    2016-03-21
  3.0    2016-03-22
  2.0    2016-03-23
  1.0    2016-03-24
  0.0    2016-03-25
  </code></pre>
  
  <p>I use this code to get the index value of a date:</p>
  
  <pre><code>d = df.loc[df["Date"] == "2016-03-21"].index
  </code></pre>
  
  <p>How could be possible for me to get the next possible date's index value if I enter a missing date in a query like below.</p>
  
  <pre><code>d = df.loc[df["Date"] == "2016-03-19"].index
  </code></pre>
  
  <p>I need to get "4.0" which belongs to the next possible date 2016-03-21</p>