title: Pandas delete rows after condition in column "A" until confition in column "B"
body: <p>How do you remove each row after each &quot;close_condition&quot; == 1 until you reach a &quot;open_condition&quot; == 1 row?</p>
  <p>No row with &quot;open_condition&quot; == 1 is to be deleted</p>
  <pre><code>   open_condition  close_condition
  0                1                1
  1                0                1
  2                0                0
  3                0                0
  4                0                1
  5                0                1
  6                1                0
  7                1                0
  8                1                1
  9                0                0
  10               1                0
  11               1                0
  12               0                0
  13               1                0
  14               0                0
  15               0                0
  16               1                0
  17               0                0
  18               1                1
  19               0                1
  </code></pre>
  <p>should become</p>
  <pre><code> open_condition  close_condition
  0                1                1
  6                1                0
  7                1                0
  8                1                1
  10               1                0
  11               1                0
  12               0                0
  13               1                0
  14               0                0
  15               0                0
  16               1                0
  17               0                0
  18               1                1
  </code></pre>