thealper2 commited on
Commit
be5fc68
1 Parent(s): b2b748f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 test['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
 
 
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