I am using Matplotlib to create a histogram for following data:
df['overall'].value_counts():
5.0 108602
4.0 39974
3.0 21436
1.0 13269
2.0 11059
I used following code:
plt.hist(df['overall'])
plt.xlabel('Class')
plt.ylabel('Amount')
Why are my bins shifted and is there a way to only display 1.0, 2.0, 3.0, 4.0, 5.0 with the bins above them? Secondly, how can I get data labels with the total and relative amounts?
Thank you a lot in advanced :)