title: Python theory question and dataframe management
body: <p>I am very lost, I need to go through a dataframe validating a condition in each row, if the condition is met DO NOT delete the row and if it is met delete it.</p>
  <p>In the validation I need to consult previous rows for each row, that is, for each row to see the rest, and not from the same column, I need the entire row.</p>
  <p>I can't find any method on the internet to see the entire dataframe from the perspective of the previous row, I can only see that row.</p>
  <p>I think iterrows can work, but I don't know how to implement it.</p>