diff --git a/ml2/3_5_Exercise_1.ipynb b/ml2/3_5_Exercise_1.ipynb index 80dcc56..a079013 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['Sex'].map(lambda x: 1 if x == 0 else 0)" + "df['Female'] = df['Sex'].map(lambda x: 1 if x == \"female\" else 0)" ] }, {