title: How to name a dataframe column filled by numpy array?
body: <p>I am filling a DataFrame by transposing some numpy array :</p>
  
  <pre><code>    for symbol in syms[:5]:
      price_p = Share(symbol)
      closes_p = [c['Close'] for c in price_p.get_historical(startdate_s, enddate_s)] 
      dump = np.array(closes_p)
      na_price_ar.append(dump)
      print symbol
  df = pd.DataFrame(na_price_ar).transpose()
  </code></pre>
  
  <p>df, the DataFrame is well filled however, the column name are 0,1,2...,5 I would like to rename them with the value of the element syms[:5]. I googled it and I found this:</p>
  
  <pre><code>    for symbol in syms[:5]:
      df.rename(columns={ ''+ str(i) + '' : symbol}, inplace=True)
      i = i+1
  </code></pre>
  
  <p>But if I check the variabke df I still have the same column name.
  Any ideas ?</p>