How to plot day and month
问题 I have a chart of a daily trend over time. The year is not relevant here and I want to show only day and month. I know you can show year and month but that is not the case. I tried to create a new variable called "Day_Month": import datetime as dt df['Day'] = df['date'].dt.day df['Month'] = df['date'].dt.month df['Day_Month'] = df['Day'].astype(str) + "-" + but it's not possible to plot it as a string nor to convert it to date type. eventually, I would like my chart to look like this: 回答1: