cnt = train[train['Sex'] == 'male'].shape[0] print(cnt)
cnt = train[train['Pclass'] == 1].shape[0] print(cnt)