1
0
mirror of https://github.com/gsi-upm/sitc synced 2024-12-22 03:38:13 +00:00

Fixed Female

This commit is contained in:
cif2cif 2017-03-28 09:41:31 +02:00
parent 66731127dd
commit a2357f1284

View File

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