title: Is there a Python function to solve index value error in random forest?
body: <p>On running the following code in Python:</p>
  <pre><code>rfcimp = pd.Series(rfc.feature_importances_,index = X.columns)
  rfcimp.plot(kind = 'barh', figsize = (12,8))
  </code></pre>
  <p>I am facing the below error:</p>
  <blockquote>
  <p>ValueError: Length of passed values is 18, index implies 21</p>
  </blockquote>
  <p>What am I doing wrong here?</p>