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
Describe the bug
In Pandas, when renaming a column to a column name that already exists in the DataFrame, two columns with the same column name are created.
When performing the same operation in cuDF, the column to be renamed is deleted from the DataFrame.
Hope it helps!
Miguel Expected behavior
Same behaviour than Pandas, or at least an error/warning highlighting that the operation could not be performed.
Environment overview (please complete the following information)
cudf.version is '21.12.02'
DGX-1 Server
The text was updated successfully, but these errors were encountered:
Thanks for raising this issue. Silently removing the column is certainly not expected behavior here, as we throw in other situations such as directly setting column names with a duplicate label (ValueError: Duplicate column names are not allowed).
Describe the bug
In Pandas, when renaming a column to a column name that already exists in the DataFrame, two columns with the same column name are created.
When performing the same operation in cuDF, the column to be renamed is deleted from the DataFrame.
Steps/Code to reproduce bug
Hope it helps!
Miguel
Expected behavior
Same behaviour than Pandas, or at least an error/warning highlighting that the operation could not be performed.
Environment overview (please complete the following information)
cudf.version is '21.12.02'
DGX-1 Server
The text was updated successfully, but these errors were encountered: