1
0
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:
Carlos A. Iglesias 2024-02-21 12:29:04 +01:00 committed by GitHub
parent 3f5eba3e84
commit 78e62af098
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -373,8 +373,8 @@
"source": [
"#Mean age of passengers per Passenger class\n",
"\n",
"#First we calculate the mean\n",
"df.groupby('Pclass').mean()"
"#First we calculate the mean for the numeric columns\n",
"df.select_dtypes(np.number).groupby('Pclass').mean()"
]
},
{