Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
top_ten = df[df['ratings_count'] > 1000000]
top_ten.sort_values(by='average_rating', ascending=False)
plt.style.use('seaborn-whitegrid')
plt.figure(figsize=(10, 10))
data = top_ten.sort_values(by='average_rating', ascending=False).head(10)
sns.barplot(x="average_rating", y="title", data=data, palette='inferno')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment