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
MarcoGorelli
changed the title
pivot may still introduce duplicates (in a different way!)
pivot may still introduce duplicate column names (in a different way!)
Feb 6, 2024
tidyr would just raise, and pandas doesn't consider duplicate column names to be a bug (!) (though pandas has an index anyway, so in this case it would just name the index 'a')
Checks
Reproducible example
the duplicates never stop
Log output
No response
Issue description
if
index
is a column with the same name as one of the values in thecolumns
columnExpected behavior
raise
Installed versions
The text was updated successfully, but these errors were encountered: