text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

df = pd.read_csv('../input/chocolate-bar-ratings/chocolate_bars.csv')

plt.figure(figsize=(10, 25))
sns.catplot(x='bean_origin', y='rating', kind='bar', height=10, aspect=2, data=df.head(2530)).set(title='Bean Origin vs Ratings')
plt.xticks(rotation=90)
plt.xlabel('Bean Origin', fontsize=14)
plt.ylabel('Ratings', fontsize=14)
plt.show()