Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. popular = movies_ranked.sort_values('popularity', ascending=False)
  2.  
  3. plt.figure(figsize=(16,6))
  4.  
  5. ax = sns.barplot(x=popular['popularity'].head(10), y=popular['original_title'].head(10), data=popular, palette='deep')
  6.  
  7. plt.title('"Most Popular" Movies by TMDB Votes', weight='bold')
  8. plt.xlabel('Popularity Score', weight='bold')
  9. plt.ylabel('Movie Title', weight='bold')
  10.  
  11. plt.savefig('popular_movies.png')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement