mirror of
https://github.com/gsi-upm/sitc
synced 2024-12-22 03:38:13 +00:00
Update 3_3_Data_Munging_with_Pandas.ipynb
Updated to last version of scikit
This commit is contained in:
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()"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user