I have a data in this format.
Using the data above, I created a graph using code below.
from matplotlib import pyplot
pyplot.figure(figsize=(12,8))
pyplot.plot(df_movie['date'], df_movie['rate'], label = 'rating')
pyplot.xticks(rotation=90)
pyplot.legend(loc='best')
pyplot.grid()
pyplot.show()
Below is the result of this code.
There is xticks label for every single date. But I want xticks labels to be shown by every week or every other 10 days or so on. How can I do this?
Thank you