Spaces:
Runtime error
Runtime error
Kwasiasomani
commited on
Commit
•
25a2395
1
Parent(s):
8fea873
Update app.py
Browse files
app.py
CHANGED
@@ -126,9 +126,9 @@ if menu == 'Prediction target':
|
|
126 |
|
127 |
# defining categories and numeric columns
|
128 |
|
129 |
-
|
130 |
columns = list(input_data.columns)
|
131 |
-
encoded_cat = Encoder.transform(input_data[
|
132 |
|
133 |
# we dropped the categorical encoder column before we concat
|
134 |
train_enc = input_data.drop(['city'],axis = 1)
|
|
|
126 |
|
127 |
# defining categories and numeric columns
|
128 |
|
129 |
+
col = ['city']
|
130 |
columns = list(input_data.columns)
|
131 |
+
encoded_cat = Encoder.transform(input_data[col])
|
132 |
|
133 |
# we dropped the categorical encoder column before we concat
|
134 |
train_enc = input_data.drop(['city'],axis = 1)
|