I am trying to deploy a used car evaluation model using XGBregressor and have used OrdinalEncoder from training dataset as pickle

If you’re creating a debugging post, please include the following info:

  1. Share the link to the public app (deployed on Community Cloud).
  2. Share the link to your app’s public GitHub repository (including a [requirements file](GitHub - Zeepratik4444/Used_Car_Evaluation
    3.Error : AttributeError: ‘OrdinalEncoder’ object has no attribute ‘_infrequent_enabled’
 df = pd.DataFrame([data])                                            
       def  predict_price(data,encoders,model):
    50 │   cols = ['Name', 'Location', 'Fuel_Type', 'Transmission', 'Owner_Typ  
    51 │   for col in cols:                                                     
  ❱ 52 │   │   df[col] = encoders[col].transform(df[[col]])                     
    53 │   df = scaler.transform(df)                                            
    54 │   response = model.predict(df)                                         
    55 │   return response 
  1. scikit-learn ==“1.0.2”

Everythings working fine when hosted locally but gives issues when i have deployed the app on streamlit cloud