Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement