-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Open
Description
From step12 to 14, it asked to downsample the record to a yearly/monthly/weekly frequency for each location.
The provided solution is like below:
data.groupby(data.index.to_period('A')).mean()
I think it would be simpler to use resample function as below:
data.resample('AS').mean()
data.resample('M').mean()
data.resample('W').mean()
Metadata
Metadata
Assignees
Labels
No labels