title: How do I get Feature orders from xgboost pickle model
body: <p>I am trying to get predictions using my xgboost pickle model using the new data but getting the error &quot;ValueError: Feature shape mismatch&quot;</p>
  <p>The reason for this is I need to pass the feature names exactly in the same order model was built. For that I am using the following code but it's not working:-</p>
  <pre><code>    feature_order= model_pkl.get_booster().feature_names
      X_new = X_new[feature_order]
      Y_static = model_pkl.predict(X_new)
  </code></pre>
  <p>feature_order is returning &quot;None&quot; it was working in the xgboost version 1.1.1. But Now I am using the xgboost version 1.4.2.</p>
  <p>Can you guys please help me in getting the feature order from my xgboost pickle model? So that I can pass my data also in the same order and not run into the error?</p>