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.to_series
Describe the bug When we call MultiIndex.to_series, there is incomplete data that is being returned.
Steps/Code to reproduce bug
In [1]: import cudf cudf.M In [2]: cudf.MultiIndex.from_tuples([(1, 0), (10, 11), (12, 13)], names=['a', 'b']) Out[2]: MultiIndex([( 1, 0), (10, 11), (12, 13)], names=['a', 'b']) In [3]: idx = cudf.MultiIndex.from_tuples([(1, 0), (10, 11), (12, 13)], names=['a', 'b']) In [4]: idx.to_series() Out[4]: a b 1 0 1 10 11 10 12 13 12 Name: a, dtype: int64 In [5]: idx.to_pandas().to_series() Out[5]: a b 1 0 (1, 0) 10 11 (10, 11) 12 13 (12, 13) dtype: object In [6]: idx = cudf.MultiIndex.from_tuples([(1, ), (10, ), (12,)], names=['a',]) In [7]: idx Out[7]: MultiIndex([( 1,), (10,), (12,)], names=['a']) In [8]: idx.to_series() Out[8]: a 1 1 10 10 12 12 Name: a, dtype: int64 In [9]: idx.to_pandas().to_series() Out[9]: a 1 (1,) 10 (10,) 12 (12,) dtype: object
Expected behavior Raise an error because we don't have support for tuple type in our columns.
tuple
Environment overview (please complete the following information)
docker pull
docker run
The text was updated successfully, but these errors were encountered:
NotImplementedError
Raise NotImplementedError for MultiIndex.to_series (#14049)
7331922
Fixes #14035 This PR raises an error for `MultiIndex.to_series` because we cannot store `tuple` type columns in `cudf`. Authors: - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - Lawrence Mitchell (https://github.com/wence-) URL: #14049
galipremsagar
Successfully merging a pull request may close this issue.
Describe the bug
When we call
MultiIndex.to_series
, there is incomplete data that is being returned.Steps/Code to reproduce bug
Expected behavior
Raise an error because we don't have support for
tuple
type in our columns.Environment overview (please complete the following information)
docker pull
&docker run
commands usedThe text was updated successfully, but these errors were encountered: