mirror of
https://github.com/gsi-upm/sitc
synced 2024-11-21 14:02:28 +00:00
Merge pull request #4 from gsi-upm/dveni-patch-1
Update 3_3_Data_Munging_with_Pandas.ipynb
This commit is contained in:
commit
e70689072f
@ -437,7 +437,7 @@
|
||||
"\n",
|
||||
"#Show mean Age, mean SibSp, and number of passengers older than 25 that survived, grouped by Passenger Class and Sex\n",
|
||||
"df[(df.Age > 25 & (df.Survived == 1))].groupby(['Pclass', 'Sex'])['Age','SibSp','Survived'].agg({'Age': np.mean, \n",
|
||||
" 'SibSp': np.mean, 'Survived': np.size})"
|
||||
" 'SibSp': np.mean, 'Survived': np.sum})"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user