I have 4 different dfs. Example of column names:
df1 = a1, b1, c1, d1
df2 = b1, c1, e1
df3 = a1, b1, c1
And I created dicrionary like this:
dict = {a1:art1, b1:base1, c1:cell1, d1:dan1, e1:el1}
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.
My excpected result is:
df1 = art1, base1, cell1, dan1
df2 = base1, cell1, el1
df3 = art1, base1, cell1
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.