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

train_set = pd.read_csv('../input/train.csv')
test_set = pd.read_csv('../input/test.csv')

train_set.isnull().any()

train_set.Survived.value_counts()

train_set[['Pclass', 'Survived']].groupby(['Pclass']).mean().sort_values(by='Survived', ascending=False)