text_html_output_1.png
import pandas as pd

import pandas as pd
import numpy as np
train = pd.read_csv('../input/titanic/train.csv')
test = pd.read_csv('../input/titanic/test.csv')
gender_submission_df = pd.read_csv('../input/titanic/gender_submission.csv')

Parch_and_SibSp_col = train.Parch.astype(str) + ':' + train.SibSp.astype(str)
train.assign(Parch_SibSp=Parch_and_SibSp_col)[['Parch_SibSp', 'Survived']].groupby(['Parch_SibSp'], as_index=False).mean().sort_values(by='Survived', ascending=False)