-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF: use should_extension_dispatch for comparison method #27912
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
* BUG: fix Sparse reduction
pandas/core/ops/__init__.py
Outdated
@@ -605,14 +604,20 @@ def dispatch_to_extension_op(op, left, right): | |||
new_right = extract_array(right, extract_numpy=True) | |||
|
|||
try: | |||
res_values = op(new_left, new_right) | |||
with warnings.catch_warnings(): |
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 a comment on the condition on what this is filtering. can we pre-empt the DeprecationWarning by a check?
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.
turns out this was the wrong/suboptimal place to do this check. so this catch_warnings is now removed entirely and this is handled by checking for ABCExtensionArray before we get here
updated+green |
Thanks! |
…27912) * REF: implement should_extension_dispatch
…27912) * REF: implement should_extension_dispatch
This sits on top of #27815