Can you help me understand the difference between the statements mentioned below? Given that Survived
column contains binary data (0,1), they give different answers:
df_train[df_train.Sex == 'female'].Survived.count()
df_train[df_train.Sex == 'female'].Survived.sum()
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…