The same 7-day average, but with no leading NaNs — start computing from the fir…

pandas · from resample and rolling

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

Putting the kettle on…

Starting up…

Exercise 4

The same 7-day average, but with no leading NaNs — start computing from the first day.

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