title: How to delete the last row of data of a pandas dataframe
body: <p>I think this should be simple, but I tried a few ideas and none of them worked:</p>
  
  <pre><code>last_row = len(DF)
  DF = DF.drop(DF.index[last_row])  #&lt;-- fail!
  </code></pre>
  
  <p>I tried using negative indices but that also lead to errors. I must still be misunderstanding something basic.</p>