I am a newbie in data analysis stuff. I am trying to analyse a dataset using python.
- I want to count no. of 1s in survived column
- No. of male , female in Sex column
PassengerId Survived Pclass Sex
0 1 0 3 male
1 2 1 1 female
2 3 1 3 male
3 4 1 1 female
4 5 0 3 male
I tried groupby() but its giving error.
In[88] titanic_data.groupby('Survived')
Out[88] <pandas.core.groupby.DataFrameGroupBy object at 0x000000000BFFE588>
Please suggest solution