Not able to plot bar graph
**def draw_bar_plot():
Copy and modify data for monthly bar plot
df["month"]= df.index.month
df["year"]= df.index.year
df= df.groupby(["year","month"])["value"].mean().unstack()
Draw bar plot
df.plot.bar()
plt.xlabel(“Years”, fontsize=10)
plt.ylabel(“Average Page Views”, fontsize=10)
plt.xlabel(“Years”, fontsize= 10)
plt.ylabel(“Average Page Views”, fontsize= 10)
#plt.xticks(rotation=30)
plt.xticks(fontsize = 10)
plt.yticks(fontsize = 10)
plt.legend(fontsize = 10, labels = [‘January’, ‘February’, ‘March’, ‘April’, ‘May’, ‘June’, ‘July’, ‘August’, ‘September’, ‘October’, ‘November’, ‘December’])
**
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36
.
Challenge: Page View Time Series Visualizer
Link to the challenge:
https://www.freecodecamp.org/learn/data-analysis-with-python/data-analysis-with-python-projects/page-view-time-series-visualizerPreformatted text