text_plain_output_2.png text_plain_output_1.png image_output_1.png
import pandas as pd

df = pd.read_csv('/kaggle/input/international-airline-passengers/international-airline-passengers.csv', index_col='Month')

columns_to_keep = ['Passengers']
df = df[columns_to_keep]
df['Passengers'] = df['Passengers'].apply(lambda x: x * 1000)
df.index.names = ['Month']
df.sort_index(inplace=True)

df.isnull().sum()

null_columns = df.columns[df.isnull().any()]
df[null_columns].isnull().sum()

df.dropna(inplace=True)

df.isnull().sum()