You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fedegr
changed the title
BUG:
BUG: Raname a column to have the same name to other column creates a DataFrame with two columns with the same name
Jan 20, 2022
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
Renaming a column to have a name of another column generates a new DataFrame with 2 columns with the same name
Expected Behavior
I would expect an error or the old column to be replaced.
Installed Versions
The text was updated successfully, but these errors were encountered: