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.codes
Describe the bug cudf.MultiIndex.codes returns a dataframe, whereas pandas.MultiIndex.codes returns a list of arrays.
cudf.MultiIndex.codes
pandas.MultiIndex.codes
Steps/Code to reproduce bug
In [1]: import cudf In [2]: midx = cudf.MultiIndex( ...: levels=[[1, 3, 4, 5], [1, 2, 5]], ...: codes=[[0, 0, 1, 2, 3], [0, 2, 1, 1, 0]], ...: names=["x", "y"], ...: ) In [3]: midx.codes Out[3]: 0 1 0 0 0 1 0 2 2 1 1 3 2 1 4 3 0 In [4]: midx.to_pandas().codes Out[4]: FrozenList([[0, 0, 1, 2, 3], [0, 2, 1, 1, 0]]) In [5]: midx.to_pandas().codes[0] Out[5]: array([0, 0, 1, 2, 3], dtype=int8) In [6]: midx.to_pandas().codes[1] Out[6]: array([0, 2, 1, 1, 0], dtype=int8)
Expected behavior Match pandas by returning a list of cupy arrays.
Environment overview (please complete the following information)
The text was updated successfully, but these errors were encountered:
galipremsagar
Successfully merging a pull request may close this issue.
Describe the bug
cudf.MultiIndex.codes
returns a dataframe, whereaspandas.MultiIndex.codes
returns a list of arrays.Steps/Code to reproduce bug
Expected behavior
Match pandas by returning a list of cupy arrays.
Environment overview (please complete the following information)
The text was updated successfully, but these errors were encountered: