title: dropping a row in pandas with dates indexes, python
body: <p>I'm trying to drop the last row in a <code>dataframe</code> created by pandas in python and seem to be having trouble. </p>
  
  <pre><code>index = DateRange('1/1/2000', periods=8)
  df = DataFrame(randn(8, 3), index=index, columns=['A', 'B', 'C'])
  </code></pre>
  
  <p>I tried the drop method like this:</p>
  
  <pre><code>df.drop([shape(df)[0]-1], axis = 0)
  </code></pre>
  
  <p>but it keeps saying label not contained in the axis. </p>
  
  <p>I also tried to drop by index name and it still doesn't seem to be working.</p>
  
  <p>Any advice would be appreciated. Thanks!!!</p>