text_plain_output_1.png
import pandas as pd

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

drop_train_data = train_data.drop(['Name', 'PassengerId', 'Cabin', 'Ticket'], axis=1).dropna(axis=0)
train_data['Family'] = train_data['SibSp'] + train_data['Parch']
train_data.corr()