title: Select rows with condition on a column in pandas (plus avoiding duplicates)
body: <p>I've a question about a specific problem in pandas:
  I have in a df a column with the following values:</p>
  <pre><code>5
  4
  3
  2
  1
  0
  0
  0
  0
  1
  2
  3
  4
  5
  </code></pre>
  <p>I want to select all the rows from the first 5 to the last 0:</p>
  <pre><code>5
  4
  3
  2
  1
  0
  0
  0
  0
  </code></pre>
  <p>I tried with drop duplicates, but i loose the last three zeroes.
  I'm thinking aboutusing a for cycle and stop when the i-th value of the column is greater than the i-1 value, but i don't know how to make such a cycle for a dataframe in pandas.
  Can someone help me?</p>
  <p>Thank you in advance, I hope I've explained the problem clearly.</p>