text_plain_output_1.png
import pandas as pd

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

df = pd.read_csv('../input/titanic/train.csv')
df

df.drop(['Pclass', 'Name', 'Ticket', 'Fare', 'Cabin', 'Embarked'], axis=1, inplace=True)

df.isna().sum()

round(df.isna().sum() / len(df.index) * 100, 2)

round(df.isna().sum() / len(df.index) * 100, 2)