1
0
mirror of https://github.com/gsi-upm/sitc synced 2024-11-22 14:32:28 +00:00

Error. Changed Gender by Sex

This commit is contained in:
Carlos A. Iglesias 2016-04-05 16:38:15 +02:00
parent e277fb285b
commit d173094da9

View File

@ -400,7 +400,7 @@
"source": [ "source": [
"# Specific features for Children and Female since there are more survivors\n", "# 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['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)"
] ]
}, },
{ {