title: How to rename multiple dataframes in one loop with a shared dictionary?
body: <p>I have multiple dataframes which all share the same number of columns with the same names. For some reason, I would like to rename all these columnes with a dictionary. </p>
  
  <p>I know how to do it for one dataframe at a time using the rename function of pandas such as: </p>
  
  <pre><code>df = df.rename(columns={"1": "a", etc.})
  </code></pre>
  
  <p>I would like to add a loop for each dataframe from a list of dataframes (df_list) but for some reason it does not act as I would expect it to.</p>
  
  <pre><code>df_list = (df1, df2)
  
  for i in df_list:
  
     i = i.rename(columns={
      '1':'a',
      '2':'b',
      '3':'c', etc.})
  </code></pre>
  
  <p>The code above does not provide any error, nor change anything. Again, both df1 and df2 share the exact same structure (columns = "1", "2", "3", etc.).</p>
  
  <p>I would happily read any suggestion as to how I can proceed to automate the renaming of these columns... Thanks !</p>