You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
The text was updated successfully, but these errors were encountered:
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()
The text was updated successfully, but these errors were encountered: