Return the day-to-day change in sales
pandas · from shift, diff and change over time
.shift().diff().pct_change()grouped shiftleakagecumsumPutting the kettle on…
Starting up…
Exercise 2
Return the day-to-day change in sales.
your answer
stuck? the lesson behind it
shift, diff and change over time
Slide the column down a row, and every “compared to last time” question falls out.