Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|