I have a dataset consisting of two columns: Date ds and volume y. I would like to see how the daily avg volume is trending across different months and years. I would like to have month names on x-axis and avg vol on y-axis. The lines should represent different years. Here is sample dataset and where I am stuck.
df = pd.DataFrame([
{"ds":"2017-01-01","y":3},
{"ds":"2017-01-18","y":4},
{"ds":"2017-02-04","y":6},
{"ds":"2018-01-06","y":2},
{"ds":"2018-01-12","y":8},
{"ds":"2018-02-08","y":2},
{"ds":"2018-03-02","y":8},
{"ds":"2018-03-15","y":2},
{"ds":"2018-03-22","y":8},
])
df["ds"] = pd.to_datetime(df["ds"])
df.set_index("ds",inplace=True)
df.resample("M").mean().plot()
