Closed wence- closed 2 weeks ago
This is probably a consequence of cudf not supporting duplicate column names:
pd.DataFrame(np.arange(4).reshape(2,2), columns=["a", "a"])
# a a
# 0 0 1
# 1 2 3
cudf.DataFrame(np.arange(4).reshape(2,2), columns=["a", "a"])
# a
# 0 1
# 1 3
Yes, see #13273, the end result will depend on what we do for that case.
Looks you had "fixed" this in commit https://github.com/rapidsai/cudf/commit/e0ffbd72e92 by raising a ValueError. (I'll open a separate issue for cudf to support duplicate labels) so closing this out
Describe the bug
This is because
ColumnAccessor.select_by_index
uniquifies input index arguments.Expected behavior
This should match pandas.