Lets say I have the following dataframe representing the dietary habits of my pet frog
date bugs_eaten_today
2019-01-31 0
2019-01-30 5
2019-01-29 6
2019-01-28 7
2019-01-27 2
...
Now I want to calculate a new column bugs_eaten_past_20_days
date bugs_eaten_today bugs_eaten_paast_20_days
2019-01-31 0 48
2019-01-30 5 38
2019-01-29 6 57
2019-01-28 7 63
2019-01-27 2 21
...
How would I go about doing this? (Note that we don't have data for last 20 rows, so they will just be NaN)