Skip to content

Instantly share code, notes, and snippets.

@deansublett
Created June 5, 2019 18:05
Show Gist options
  • Save deansublett/455b3eb8bcb28064b266627267bbd99d to your computer and use it in GitHub Desktop.
Save deansublett/455b3eb8bcb28064b266627267bbd99d to your computer and use it in GitHub Desktop.
popular = movies_ranked.sort_values('popularity', ascending=False)
plt.figure(figsize=(16,6))
ax = sns.barplot(x=popular['popularity'].head(10), y=popular['original_title'].head(10), data=popular, palette='deep')
plt.title('"Most Popular" Movies by TMDB Votes', weight='bold')
plt.xlabel('Popularity Score', weight='bold')
plt.ylabel('Movie Title', weight='bold')
plt.savefig('popular_movies.png')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment