title: How to get back column names from indices in python?
body: <p>I have the dataframe,</p>
  
  <p>from that I converted to ndarray,</p>
  
  <pre><code>X = df.iloc[:].values
  </code></pre>
  
  <p>then I did the feature selection which gives me some columns [3,45,67,89,101,145,...]</p>
  
  <p>as there are many columns may I know how to get back the corresponding column names in the dataframe</p>
  
  <p>The reverse I can do using below code</p>
  
  <pre><code>cols = ['Amount','Savings_Amount','Loan_Term']
  [df.columns.get_loc(c) for c in cols if c in df]
  </code></pre>
  
  <p>But I need to find names from the indices.</p>