title: Python - Scikit find variable importance for categorical variables
body: <p>I'm trying to use scikit learn in python to do a couple different classifier problems (RF, GBM, etc).  In addition to building models and making predictions, I'd like to see variable importance.  I know there is a way to get the importances</p>
  
  <pre><code>importances = clf.feature_importances_
  print(importances)
  </code></pre>
  
  <p>but how do I get something more refined that has the importance connected to the variable name (ie <code>summary(gbm)</code> in R or <code>varImp(randomForest)</code> in R) especially if it's a categorical variable with multiple levels?</p>