mirror of
https://github.com/gsi-upm/sitc
synced 2025-01-07 03:31:28 +00:00
Compare commits
2 Commits
2c8238f1f2
...
e70689072f
Author | SHA1 | Date | |
---|---|---|---|
|
e70689072f | ||
|
344e054ba4 |
@ -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