Error. Changed Gender by Sex

pull/1/head
Carlos A. Iglesias 8 years ago
parent e277fb285b
commit d173094da9

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

Loading…
Cancel
Save