image_output_1.png
import missingno as msno

import pandas as pd

df_train = pd.read_csv('../input/train.csv')
df_test = pd.read_csv('../input/test.csv')

df_train.isnull().sum()

msno.matrix(df=df_train.iloc[:, :], figsize=(7, 5), color=(0.5, 0.1, 0.2))

df_train.groupby(['Sex', 'Survived'])['Survived'].count()

pd.crosstab(df_train.Pclass, df_train.Survived, margins=True)

df_train[['Pclass', 'Survived']].groupby(['Pclass'], as_index=True).mean().sort_values(by='Survived', ascending=False).plot.bar()