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

imdb_all = pd.read_csv('/kaggle/input/imdb-dataset-of-top-1000-movies-and-tv-shows/imdb_top_1000.csv')

imdb_all['Gross'] = imdb_all['Gross'].str.replace(',', '')
imdb_all['Gross'] = pd.to_numeric(imdb_all['Gross'])
imdb_all['Gross'] = imdb_all['Gross'].fillna(imdb_all['Gross'].mean())
imdb_all['Certificate'] = imdb_all['Certificate'].fillna('No certificate')
imdb_all['Meta_score'] = imdb_all['Meta_score'].fillna(imdb_all['Meta_score'].mean())
imdb_all.info()