I have written a small function to calculate permutation importance for a model.
I am aware of the SettingWithCopyWarning from pandas, however, when implementing my f