Update 3_3_Data_Munging_with_Pandas.ipynb

Updated to last version of scikit
master
Carlos A. Iglesias 2 months ago committed by GitHub
parent 3f5eba3e84
commit 78e62af098
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save