-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DEPR: deprecate Index.is_boolean #50176
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
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.
Can you add tests as well? Same as the other, have to hold off a bit
I added a test in pandas/tests/indexes/common.py. Do you mean something additional? |
Missed this, sorry |
needs a rebase, can merge afterwards |
e85edbf
to
596ee34
Compare
pandas/core/indexes/base.py
Outdated
@@ -2210,6 +2213,12 @@ def is_boolean(self) -> bool: | |||
>>> idx.is_boolean() | |||
False | |||
""" | |||
warnings.warn( | |||
f"{type(self).__name__}.is_boolean is deprecated." |
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.
Same as the other pr, needs a whitespace here
Updated. |
Thx @topper-123 |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.