Skip to content

Instantly share code, notes, and snippets.

@ravishchawla
Last active June 20, 2019 15:39
Show Gist options
  • Save ravishchawla/b289c919c699c483a02d304393d1b169 to your computer and use it in GitHub Desktop.
Save ravishchawla/b289c919c699c483a02d304393d1b169 to your computer and use it in GitHub Desktop.
pd.DataFrame(list(zip(transaction_data_only.columns[2:], tuned_rf_model.feature_importances_)), \
columns=['Attribute', 'Feature Importance']).sort_values(by='Feature Importance', ascending=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment