title: Remove dataframe rows if index larger than x
body: <p>I want to remove dataframe rows that index is larger than 13491. </p>
  
  <p>I tried</p>
  
  <pre><code>df.drop(df.index &gt; [13491])
  </code></pre>
  
  <p>but received error</p>
  
  <pre><code>KeyError: 'labels [False False False ...  True  True  True] not contained in axis'
  </code></pre>
  
  <p>This one works fine </p>
  
  <pre><code>df= df[df.index &lt; 13492]
  </code></pre>
  
  <p>But how to remove the filtered rows from dataframe ? </p>
  
  <p>Can someone give me some suggestions ? Thank you in advanced !</p>