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
MultiIndex.difference
pd.MultiIndex
Describe the bug MultiIndex.difference has a back to pd.MultiIndex.difference, but the result isn't converted back to cudf.MultiIndex
pd.MultiIndex.difference
cudf.MultiIndex
Steps/Code to reproduce bug
In [1]: import cudf In [3]: idx = cudf.MultiIndex.from_tuples([('a', 'b'), ('a', 'c'), ('b', 'd')]) In [4]: idx Out[4]: MultiIndex([('a', 'b'), ('a', 'c'), ('b', 'd')], ) In [5]: type(idx) Out[5]: cudf.core.multiindex.MultiIndex In [6]: idx.difference(idx) Out[6]: MultiIndex([], ) In [7]: type(idx.difference(idx)) Out[7]: pandas.core.indexes.multi.MultiIndex
Expected behavior
In [7]: type(idx.difference(idx)) Out[7]: cudf.core.multiindex.MultiIndex
Environment overview (please complete the following information)
The text was updated successfully, but these errors were encountered:
Fix return type of MultiIndex.difference (#14009)
04ee729
closes #14008 This PR ensures `MultiIndex.difference` returns `cudf.MultiIndex`. Authors: - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - Matthew Roeschke (https://github.com/mroeschke) - Bradley Dice (https://github.com/bdice) URL: #14009
galipremsagar
Successfully merging a pull request may close this issue.
Describe the bug
MultiIndex.difference
has a back topd.MultiIndex.difference
, but the result isn't converted back tocudf.MultiIndex
Steps/Code to reproduce bug
Expected behavior
Environment overview (please complete the following information)
The text was updated successfully, but these errors were encountered: