We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Index.difference
name
Index
Describe the bug When Index.difference is called using two Index objects with different names, the result shouldn't have a name set.
Steps/Code to reproduce bug
In [1]: import cudf In [2]: i = cudf.Index(['a', 'b', 'c'], name='a') In [3]: i2 = cudf.Index(['a'], names='z') In [4]: i.difference(i2) Out[4]: StringIndex(['b' 'c'], dtype='object', name='a') In [5]: i.to_pandas().difference(i2.to_pandas()) Out[5]: Index(['b', 'c'], dtype='object')
Expected behavior
In [4]: i.difference(i2) Out[4]: StringIndex(['b' 'c'], dtype='object')
Environment overview (please complete the following information)
The text was updated successfully, but these errors were encountered:
Index.intersection
Fix name selection in Index.difference and Index.intersection (#…
04085ac
…13986) closes #13985 This PR fixes issues with `Index.difference` and `Index.intersection` API where the name selection was incorrect and `NA` values handling wasn't happening in these two APIs. Authors: - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - Bradley Dice (https://github.com/bdice) - Matthew Roeschke (https://github.com/mroeschke) URL: #13986
galipremsagar
Successfully merging a pull request may close this issue.
Describe the bug
When
Index.difference
is called using twoIndex
objects with different names, the result shouldn't have a name set.Steps/Code to reproduce bug
Expected behavior
Environment overview (please complete the following information)
The text was updated successfully, but these errors were encountered: