mirror of
https://github.com/gsi-upm/sitc
synced 2025-08-23 18:22:19 +00:00
Error. Changed Gender by Sex
This commit is contained in:
@@ -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)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user