Return the 7-day moving average of sales — same length as the input

pandas · from resample and rolling

.resample().rolling().expanding().ewm()min_periodsfrequency aliases

Putting the kettle on…

Starting up…

Exercise 3

Return the 7-day moving average of sales — same length as the input.

your answer
stuck? the lesson behind it
resample and rolling
One changes how many points there are. The other changes what each one says.