-
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
[REVIEW] Deprecate Index.is_*
methods
#12820
Conversation
return arr_or_dtype._is_boolean() | ||
elif isinstance(arr_or_dtype, cudf.Series): | ||
if isinstance(arr_or_dtype.dtype, cudf.CategoricalDtype): | ||
return is_bool_dtype(arr_or_dtype=arr_or_dtype.dtype) |
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.
Should this be checking the boolean dtype of the categories?
return is_bool_dtype(arr_or_dtype=arr_or_dtype.dtype) | |
return is_bool_dtype(arr_or_dtype=arr_or_dtype.dtype.categories) |
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.
I made a branch for CategoricalDtype
at line 278
that will do this step while also generalizing for our CategoricalDtype
.
Co-authored-by: Ashwin Srinath <[email protected]>
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.
LGTM!
/merge |
Description
This PR deprecates the following Index APIs to match with pandas 2.0:
Checklist