I have a pandas dataframe with a few columns, one called 'strike.' If the value of a row of the strike column is greater than 100 plus the previous row of the strike column, I want to split the dataframe into two at that point (they'd still have the same column names) and so on. I'm quite new at pandas and couldn't figure out a simple way to do this after looking up some functions.
An example: The following dataframe:
strike crv vol
1400 w a
1450 x b
1600 y c
1800 z d
would come out to be 3 dataframes:
strike crv vol
1400 w a
1450 x b
strike crv vol
1600 y c
strike crv vol
1800 z d
Thanks!