Skip to content
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

[FEA] Support cudf.IntervalDtype(subtype=None) #17997

Open
mroeschke opened this issue Feb 12, 2025 · 0 comments · May be fixed by #18017
Open

[FEA] Support cudf.IntervalDtype(subtype=None) #17997

mroeschke opened this issue Feb 12, 2025 · 0 comments · May be fixed by #18017
Labels
feature request New feature or request Python Affects Python cuDF API.

Comments

@mroeschke
Copy link
Contributor

Is your feature request related to a problem? Please describe.
pandas.IntervalDtype supports passing subtype=None meaning "a general IntervalDtype" without specified left/right types (commonly occuring if someone calls dtype=interval). cudf.IntervalDtype, as a sublcass of cudf.StructDtype, requires a left/right type specified.

Describe the solution you'd like
Support cudf.IntervalDtype holding a None left/right type or have a callback e.g. cudf.IntervalDtype._subtype_from_data that passes the subtype from the column data upon construction.

This is blocking #17978

Describe alternatives you've considered
Status quo

@mroeschke mroeschke added feature request New feature or request Python Affects Python cuDF API. labels Feb 12, 2025
@mroeschke mroeschke linked a pull request Feb 14, 2025 that will close this issue
3 tasks
@GPUtester GPUtester moved this from Todo to In Progress in cuDF Python Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request Python Affects Python cuDF API.
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

1 participant