text_html_output_1.png
import pandas as pd

import pandas as pd
t = pd.read_csv('../input/titanic/train.csv')
t

t[['SibSp', 'Parch', 'Survived']].groupby(['SibSp', 'Parch'], as_index=False).count().sort_values(by=['SibSp', 'Parch', 'Survived'], ascending=True)