title: How to replace columns names in pandas but based on dictionary?
body: <p>I have 4 different dfs.
  Example of column names:</p>
  <pre><code>df1 = a1, b1, c1, d1
  df2 = b1, c1, e1
  df3 = a1, b1, c1
  </code></pre>
  <p>And I created dicrionary like this:</p>
  <pre><code>dict = {a1:art1, b1:base1, c1:cell1, d1:dan1, e1:el1}
  </code></pre>
  <p>It's possible to rename column not using for loop? I mean, I tried to do that by rename function in for loop, but then I need to loop through all dataframe and it's not looks good in code and I think it's not that fast as should be.</p>
  <p>My excpected result is:</p>
  <pre><code>df1 = art1, base1, cell1, dan1
  df2 = base1, cell1, el1
  df3 = art1, base1, cell1
  </code></pre>
  <p>And I found some answers on stack but nothing fit to my problem, where I have one dictionary and few df with not unique columns names.</p>