title: To extract Top feature names from list numpy
body: <p>Here I have a compilation of feature names in feature_names, each name been taken from column if X_train, Y_train of a dataset. </p>
  
  <p><code>neigh</code> is an MultinomialNB classifier which has been fitted with X_train and Y_train of a dataset.</p>
  
  <p>I can't figure out now How to extract top features from feature_names by using neigh MultinomialNB classifier.</p>
  
  <p>So I wrote code below using numpy</p>
  
  <pre><code>max_ind_positv=np.argsort((neigh.feature_log_prob_)[1])[::-1][0:10]
  top_pos=np.take(feature_names,max_ind_positv)
  </code></pre>
  
  <p>But it shows the following errors:</p>
  
  <p>1) <code>AttributeError: 'list' object has no attribute 'take'</code></p>
  
  <p>2) <code>IndexError: index 3997 is out of bounds for axis 0 with size 7</code></p>
  
  <p>Please someone show me correction on how to get top 20 feature names.</p>