Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -189,7 +189,7 @@ if year:
|
|
189 |
|
190 |
#st.write(test_df)
|
191 |
numerical_variables = [col for col in test.columns if pd.api.types.is_numeric_dtype(test[col])]
|
192 |
-
if
|
193 |
test['Publication Day'] = day_encoder.transform(test['Publication Day'].values.reshape(-1, 1))
|
194 |
test[numerical_variables] = rs.transform(test[numerical_variables])
|
195 |
|
|
|
189 |
|
190 |
#st.write(test_df)
|
191 |
numerical_variables = [col for col in test.columns if pd.api.types.is_numeric_dtype(test[col])]
|
192 |
+
if features_to_models['Publication Day'] != '?':
|
193 |
test['Publication Day'] = day_encoder.transform(test['Publication Day'].values.reshape(-1, 1))
|
194 |
test[numerical_variables] = rs.transform(test[numerical_variables])
|
195 |
|