matsammut commited on
Commit
a4c0920
·
verified ·
1 Parent(s): 0c9d457

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def predict(age, workclass, education, marital_status, occupation, relationship,
17
  # "relationship":[relationship], "race":[race], "gender":[gender], "capital-gain":[capital_gain], "capital-loss":[capital_loss],
18
  # "hours-per-week":[hours_per_week], "native-country":[native_country]}
19
  columns = {
20
- "age": [age], "workclass":[workclass], "educational-num":[education],
21
  "race":[race], "gender":[gender], "capital-gain":[capital_gain], "capital-loss":[capital_loss],
22
  "hours-per-week":[hours_per_week], "native-country":[native_country]}
23
  df = pd.DataFrame(data=columns)
 
17
  # "relationship":[relationship], "race":[race], "gender":[gender], "capital-gain":[capital_gain], "capital-loss":[capital_loss],
18
  # "hours-per-week":[hours_per_week], "native-country":[native_country]}
19
  columns = {
20
+ "age": [age], "workclass":[workclass], "educational-num":[education], "occupation":[occupation],
21
  "race":[race], "gender":[gender], "capital-gain":[capital_gain], "capital-loss":[capital_loss],
22
  "hours-per-week":[hours_per_week], "native-country":[native_country]}
23
  df = pd.DataFrame(data=columns)