I would like to ask please how to get the important features in a dataframe
# fit model to training data
xgb_model = XGBClassifier(random_state = 0 )
xgb_model.fit(X_train, y_train)
print("Feature Importances : ", xgb_model.feature_importances_)
I know how to plot it but I want to know howw to put the 20 most important features in a dataframe or a list