I have a pandas dataframe with 3 million rows. I need to apply a formula to each row in the dataframe using all the rows up to the current row.
So to calculate formula ou