1
0
mirror of https://github.com/gsi-upm/sitc synced 2024-12-22 03:38:13 +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:
Carlos A. Iglesias 2019-09-19 10:46:19 +02:00 committed by GitHub
commit e70689072f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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})"
]
},
{