-
Notifications
You must be signed in to change notification settings - Fork 915
New issue
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
Fix ListColumn.to_pandas()
to retain list
type
#15155
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, but with one potential follow-up request.
# Can't rely on Column.to_pandas implementation for lists. | ||
# Need to perform `to_pylist` to preserve list types. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Presumably this is some bug in how list dtypes are handled in arrow? Do we need to report something upstream?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is already an open issue: apache/arrow#34574
Co-authored-by: Matthew Roeschke <[email protected]>
/merge |
I think there will be a mypy error on main soon as #15182 and #15155 were merge in close succession (my fault for not rebasing first) Also address a review I forgot in https://github.com/rapidsai/cudf/pull/15182/files#r1507154770 cc @galipremsagar Authors: - Matthew Roeschke (https://github.com/mroeschke) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) URL: #15228
Description
Fixes: #14568
This PR fixes
ListColumn.to_pandas()
by callingArrowArray.to_pylist()
method to retainlist
type in pandas series.Checklist