Machine Learning, Exploratory Data Analysis.
seconds ''' Feature importance importances = pd.DataFrame({ 'Feature': sdss_df_fe.drop('class', axis=1).columns, 'Importance': xgb.feature_importances_ }) importances = importances.sort_values(by='Importance', ascending=False) importances = importances.set_index('Feature') importances Output: