From 06e51db4e37da344d7372887bb0d21a0d761c735 Mon Sep 17 00:00:00 2001 From: Oscar Araque Date: Wed, 6 Mar 2019 19:32:26 +0100 Subject: [PATCH] final fix in ml2/3_4 --- ml2/3_4_Visualisation_Pandas.ipynb | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/ml2/3_4_Visualisation_Pandas.ipynb b/ml2/3_4_Visualisation_Pandas.ipynb index d69e90b..e802a5d 100644 --- a/ml2/3_4_Visualisation_Pandas.ipynb +++ b/ml2/3_4_Visualisation_Pandas.ipynb @@ -484,13 +484,17 @@ { "cell_type": "code", "execution_count": null, - "metadata": {}, + "metadata": { + "ExecuteTime": { + "end_time": "2019-03-06T17:31:13.351504Z", + "start_time": "2019-03-06T17:31:13.092499Z" + } + }, "outputs": [], "source": [ "#Small touches\n", "\n", "pclass_labels = ['First', 'Second', 'Third']\n", - "sex_labels = {'Female': 0, 'Male': 1}\n", "sex_labels = ['Female', 'Male']\n", "\n", "plt = df.query('Age < 20 and Survived == 1').groupby(['Sex','Pclass']).size().unstack(['Sex']).plot(kind='bar', \n", @@ -504,12 +508,16 @@ { "cell_type": "code", "execution_count": null, - "metadata": {}, + "metadata": { + "ExecuteTime": { + "end_time": "2019-03-06T17:31:13.578569Z", + "start_time": "2019-03-06T17:31:13.353882Z" + } + }, "outputs": [], "source": [ "#The same horizontal\n", "pclass_labels = ['First', 'Second', 'Third']\n", - "sex_labels = {'Female': 0, 'Male': 1}\n", "sex_labels = ['Female', 'Male']\n", "\n", "plt = df.query('Age > 25 and Survived == 1').groupby(['Sex','Pclass']).size().unstack(['Sex']).plot(kind='barh', \n",