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
IntervalColumn
Index.union
Describe the bug When a union operation is performed on IntervalIndex, type metadata are being lost.
union
IntervalIndex
Steps/Code to reproduce bug
In [1]: import cudf In [2]: import pandas as pd In [3]: idx = pd.IntervalIndex.from_tuples([(0, 2), (0, 2),(2, 4)]) In [4]: gidx = cudf.from_pandas(idx) In [5]: gidx Out[5]: IntervalIndex([(0, 2], (0, 2], (2, 4]], dtype='interval[int64, right]') In [7]: ngidx = cudf.from_pandas(pd.IntervalIndex.from_tuples([ (0, 2),(2, 4)])) In [8]: gidx.union(ngidx) Out[8]: IntervalIndex([{'0': 0, '1': 2}, {'0': 0, '1': 2}, {'0': 2, '1': 4}], dtype='struct')
Expected behavior
In [9]: gidx.to_pandas().union(ngidx.to_pandas()) Out[9]: IntervalIndex([(0, 2], (0, 2], (2, 4]], dtype='interval[int64, right]')
Environment overview (please complete the following information)
The text was updated successfully, but these errors were encountered:
IntervalIndex.union
Fix IntervalIndex.union to preserve type-metadata (#14051)
dc5f500
Fixes: #14041 This PR fixes `fillna` that will preserve the type-metadata for `IntervalColumn`. Authors: - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - Bradley Dice (https://github.com/bdice) URL: #14051
galipremsagar
Successfully merging a pull request may close this issue.
Describe the bug
When a
union
operation is performed onIntervalIndex
, type metadata are being lost.Steps/Code to reproduce bug
Expected behavior
Environment overview (please complete the following information)
The text was updated successfully, but these errors were encountered: