So I have created a graph where my x-axis is in dates. My struggle is that I've used the code
np.arange(0,160,30)
and then
plt.xticks(np.arange(0,160,30),labels=x[np.arange(0,160,30)])
to separate the axis into months. But as we know, the months dosen't have the same amount of days. So now my axis is divided in 01-NOV, 01-DEC, 31-DEC, 30-JAN, 29-FEB, 30-MAR. I want to find a way to arrange the axis so instead of this, I have 01-NOV, 01-DEC, 01-JAN, 01-FEB, 01-MAR, 01-APR. I'm quite new to python, and I've been trying to convert my column within the dataframe to datetime, but can't seem to get it right.