pandas pct_change and cumsum: Percent Change and Running Totals
DEV Community
pandas pct_change and cumsum: Percent Change and Running Totals
groupby gave four months and a tidy -6.0%. resample gave five, an empty April at -100%, and an infinity. Plus cumsum, the share column, rolling averages and the check that ties it together.
0 comments
No comments yet.