2021年3月2日星期二

Top 10 descending multiple bar chart python

I have data like this: enter image description here

I want to visualize between name and rating with number of review using multiple bar chart, like this but instead of country name, start and end it will be restaurant name(name), rating and number_of_review.

enter image description here

For now this is my code:

dataset.set_index('name')[['rating', 'number_of_review']].plot.bar(figsize=(155,150))  plt.show()  

But is there any way to show only top 10 highest from my data which the main reference is number_of_review column?

https://stackoverflow.com/questions/66416764/top-10-descending-multiple-bar-chart-python March 01, 2021 at 12:45PM

没有评论:

发表评论