I have a dataset- pandas dataframe. I am trying to plot a graph using matplotlib. For example
The data is sorted based on date from oldest to newest. The date is on x-axis and "Total_Repeats" is on y-axis.
I am using the following code to produce the graph
plt.plot(ts)
It can be seen that the dates in x-axis is overlapping a lot. I would like to see the dates properly. May be in month-wise format such as Jan-2018,Feb-2018,March-2018 etc. I am not sure how to format. Kindly share some thoughts.