I had an old script that from a pandas dataframe calculates new columns from others, but also from the previous result of that column being calculated.
This script us