How to do rolling subtraction repeatedly with a Pandas Dataframe?
I have a dataframe that looks like this:
value
100
1
4
10
5
3
I want to repeatedly subtract previous value with current value. I want the following output:
100
99
95
85
80
77
How can I do this? If I have multiple columns in the dataframe, how can I apply the same operation to all of the columns?