From d173094da9786c078752ccf9b14f1450d1dee17a Mon Sep 17 00:00:00 2001 From: "Carlos A. Iglesias" Date: Tue, 5 Apr 2016 16:38:15 +0200 Subject: [PATCH] Error. Changed Gender by Sex --- ml2/3_5_Exercise_1.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ml2/3_5_Exercise_1.ipynb b/ml2/3_5_Exercise_1.ipynb index b0ce846..812c9fd 100644 --- a/ml2/3_5_Exercise_1.ipynb +++ b/ml2/3_5_Exercise_1.ipynb @@ -400,7 +400,7 @@ "source": [ "# Specific features for Children and Female since there are more survivors\n", "df['Children'] = df['Age'].map(lambda x: 1 if x < 6.0 else 0)\n", - "df['Female'] = df['Gender'].map(lambda x: 1 if x == 0 else 0)" + "df['Female'] = df['Sex'].map(lambda x: 1 if x == 0 else 0)" ] }, {