10/08/2026
Your model worked in the notebook and crashed in production. A new city showed up.
pd.get_dummies builds columns from whatever data it sees. Fit a OneHotEncoder(handle_unknown='ignore') on train, inside a Pipeline, so new categories can't break it.
Comment ONEHOT for the notes.