how to highlight weekends for time series line plot in python
问题 I am trying to do analysis on a bike share dataset. Part of the analysis includes showing the weekends' demand in date wise plot. My dataframe in pandas with last 5 row looks like this. Here is my code for date vs total ride plot. import seaborn as sns sns.set_style("darkgrid") plt.plot(d17_day_count) plt.show() . I want to highlight weekends in the plot. So that it could look something similar to this plot. I am using Python with matplotlib and seaborn library. 回答1: You can easily highlight