I have a Pandas dataframe with two columns with the same name and I want to rename one of them. I know the index of each one but I haven’t found a way to rename a column by index, and all the ways I have found involve to get the name of the column based on the index which wouldn’t work for me since that would return two indexes.
Thanks