-
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 an issue with IntervalIndex.repr
when null values are present
#13958
Conversation
IntervalIndex.repr
when there are null valuesIntervalIndex.repr
when null values are present
return f"interval[{self.subtype}, {self.closed}]" | ||
|
||
def __str__(self) -> str: |
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.
Just noting that pandas' IntervalDtype.__str__
considers a few more cases, but I am not sure if cudf has all these cases implemented
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.
In case of cudf
, looks like subtype
is mandatory and optional for pandas.
/merge |
Description
closes #13954
This PR fixes an issue with
IntervalIndex.repr
, where there was a silent failure because of no dedicated_clean_nulls_from_index
and theGenericIndex._clean_nulls_from_index
wouldn't work because a type-cast tostr
isn't implemented.Checklist