Skip to content Skip to sidebar Skip to footer

Seaborn Bar Plot Y Axis Has Different Values Than Expected

The y values in the Seaborn barplot are different than what my data shows. My data shows: yearmonth 2018-10 763308.0 2018-11 708366.0 2018-12 703952.0 2019-01 84403

Solution 1:

I tried your code and it worked for me. The only thing I've made was to make sure that yearmonth is being read properly as date format:

pd.to_datetime(df['yearmonth'], format='%Y-%m')

enter image description here

You will notice that the yearmonth column changes to

  0    2018-10-01
  1    2018-11-01
  2    2018-12-01

Post a Comment for "Seaborn Bar Plot Y Axis Has Different Values Than Expected"