feature_importances = pd.DataFrame(rf.feature_importances_, index = X_train.columns, columns=['importance']).sort_values('importance', ascending=False)
df.shuffle(frac=1) uses the shuffle function for this.
- /r/mealprepsunday is quite inspiring.
- for illustration purposes and with no loss of generality, ..
Order after groupby()
It’s kinda logical, but if I group stuff, it gets saved in the same order.