title: Visualize feature selection in descending order with SelectKBest
body: <p>I want to visualize the result of feature selection as a bar chart in descending order.(Only the top 10 features) How can I do this with matplotlib? In the following you can see the code.</p>
  
  <pre><code>filename_train = 'C:\Users\x.x\workspace\Dataset\x.csv'
  names = ['a', 'b', 'c', 'd', 'e' ...........]
  df_train = pd.read_csv(filename_train, names=names)
  array = df_train.values
  X = array[:,0:68]  
  Y = df_train['RUL'].values
  
  import numpy as np
  from sklearn.feature_selection import SelectKBest
  
  # feature extraction
  test = SelectKBest(score_func=f_regression, k=10)
  fit = test.fit(X, Y)
  
  # summarize scores
  np.set_printoptions(precision=2)
  print(fit.scores_)
  </code></pre>