1
importances_DT = pd.DataFrame({'feature':x.columns,'importance':np.round(decision_tree.feature_importances_,3)})
importances_DT = importances_DT.sort_values('importance',ascending=False).set_index('feature')
How can I just "take" the Feature column and put it on a list?
I tried the following line of code:
lista = importances_DT ["feature"].tolist()