Snippets Collections
df['column_name'] = pd.to_datetime(df['column_name'])
# new version
df.groupby(pd.Grouper(key='column_name', freq="M")).mean().plot()
bookmark
dashboard

Fri Oct 16 2020 22:26:07 GMT+0000 (UTC) https://stackoverflow.com/questions/47015886/pandas-grouper-vs-time-grouper

#python #pandas #grouper

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension