Return the change against the same day last week, as a proportion
pandas · from shift, diff and change over time
.shift().diff().pct_change()grouped shiftleakagecumsumPutting the kettle on…
Starting up…
Exercise 3
Return the change against the same day last week, as a proportion.
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.