I have a DataFrame with a column 'col1' with integers in it. The DF may have anything from 100 up to 1mln rows. How to compute difference between pair of values in the col1 such as:
row2 - row1 row3 - row2 row4 - row3 etc
and return max difference?
I know how to use loc, iloc but do not know how to force it to go through pair of values and move to next pair