I'm kinda new to pandas so if its a really simple question im sorry, but i couldnt find solution to a problem exactly like this. I have a dataframe with 2 columns with same name and i need to take 2nd one and rename it and place in different spot. But when i try anything, it affects both of those columns.
I tried renaming one of them with df.rename(columns=..)
and with just for loop, but it always renames 2nd one too. Maybe i can rename 1 of them or pop 1st one and place it back later?
I have dataframe like this and i need 2 column names "Материал" renamed and put into different palce in that df (i already have index for it). And for 1st column i just need to skip it, i dont really care about its position for now.
I get the df from folder with 30+ files, each of them 20+ columns and 100k+ rows in same format so i cant change it in file.