mirror of
https://github.com/gsi-upm/sitc
synced 2025-08-23 18:22:19 +00:00
Update 3_3_Data_Munging_with_Pandas.ipynb
Updated to last version of scikit
This commit is contained in:
committed by
GitHub
parent
3f5eba3e84
commit
78e62af098
@@ -373,8 +373,8 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"#Mean age of passengers per Passenger class\n",
|
"#Mean age of passengers per Passenger class\n",
|
||||||
"\n",
|
"\n",
|
||||||
"#First we calculate the mean\n",
|
"#First we calculate the mean for the numeric columns\n",
|
||||||
"df.groupby('Pclass').mean()"
|
"df.select_dtypes(np.number).groupby('Pclass').mean()"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user