text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import seaborn as sns

df = pd.read_csv('/kaggle/input/top-10000-popular-movies-tmdb-05-2023/popular_10000_movies_tmdb.csv')
df

top_5_popular_movies = df[['title', 'popularity']]

most_popularity_lng = df.groupby('original_language')['popularity'].mean()
most_popularity_lng

top_5_popular_movies=top_5_popular_movies.head(5)
plt.figure()
sns.barplot(x='popularity', y='title', data = top_5_popular_movies, palette='viridis')
plt.title('top 5 popular movie')
plt.xlabel('popularity')
plt.ylabel('title')
plt.show()

plt.figure(figsize=(20, 30))
sns.barplot(x=most_popularity_lng.values, y=most_popularity_lng.index, data=top_5_popular_movies)
plt.title('The Average of popularity for each language')
plt.xlabel('Avg')
plt.ylabel('Language')
plt.show()