title: Pandas delete and shift cells in a column basis multiple conditions
body: <p>I have a situation where I would want to delete and shift cells in a pandas data frame basis some conditions. My data frame looks like this :</p>
  
  <pre><code>Value_1      ID_1      Value_2      ID_2         Value_3      ID_3
     A           1            D         1               G          1
     B           1            E         2               H          1
     C           1            F         2               I          3
     C           1            F         2               H          1
  </code></pre>
  
  <p>Now I want to compare the following conditions:</p>
  
  <pre><code>ID_2 and ID_3 should always be less than or equal to ID_1. If anyone of them is greater than ID_1 then that cell should be deleted and shifted with the next column cell
  </code></pre>
  
  <p>The output should look like the following :</p>
  
  <pre><code>    Value_1      ID_1      Value_2      ID_2         Value_3      ID_3
         A           1            D         1               G          1
         B           1            H         1           blank        nan
         C           1       blank        nan           blank        nan
         C           1            H         1           blank        nan
  </code></pre>