text_html_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']]

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()