FAQ: Recreate graphs using Matplotlib! - Bar Chart with Error

I know this is late but I finally saw the problem. In the original plt.bar() call, you don’t put “years” as the x_values… it should be range(len(past_years_averages)) to get a list of numbers.

6 Likes