matsammut commited on
Commit
d7ed465
·
verified ·
1 Parent(s): d93a02f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -59,7 +59,6 @@ def cleaning_features(data):
59
  numeric_cols = ['age', 'educational-num', 'hours-per-week']
60
  columns_to_encode = ['race','marital-status','relationship']
61
 
62
- data['gender'] = le.transform(data['gender'])
63
  data['workclass'] = le.transform(data['workclass'])
64
  data['occupation'] = le.transform(data['occupation'])
65
  data['gender'] = data['gender'].map(gender_mapping)
 
59
  numeric_cols = ['age', 'educational-num', 'hours-per-week']
60
  columns_to_encode = ['race','marital-status','relationship']
61
 
 
62
  data['workclass'] = le.transform(data['workclass'])
63
  data['occupation'] = le.transform(data['occupation'])
64
  data['gender'] = data['gender'].map(gender_mapping)