Python Forum

Full Version: Ho to create a bar chart with two specific columns?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello there
this is my data set

Vote_count vote_average
2000 4,5
500 5
3500 4
3000 3,5
2700 4,5
1500 3,5

I want to count how many people (vote_count) gave which rating in one bar chart (x axis: rating_vote and y axis: vote_count)

How can I do this in python 3?
I already did an attempt, but it is failed:

df[['vote_average', 'vote_count]].plot(kind='bar');
Do the numbers in vote_average have ',' instead of '.'?
You should also post your errors.