Can you help me understand the difference between the statements mentioned below? Given that Survived column contains binary data (0,1), they give different ans
Survived
sum() is for like 1+0 = 1. if data is 3 and 3 then it return 6.
count() return number of row. so it will return 2.
simple :)