df['column_name'] = pd.to_datetime(df['column_name']) # new version df.groupby(pd.Grouper(key='column_name', freq="M")).mean().plot()
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter