Skip to content

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

Merged
merged 20 commits into from
Aug 19, 2019

Conversation

jbrockmendel
Copy link
Member

This sits on top of #27815

@jreback jreback added the ExtensionArray Extending pandas with custom dtypes or arrays. label Aug 15, 2019
@@ -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():
Copy link
Contributor

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?

Copy link
Member Author

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

@jbrockmendel
Copy link
Member Author

updated+green

@TomAugspurger TomAugspurger added this to the 1.0 milestone Aug 19, 2019
@TomAugspurger TomAugspurger merged commit 9a244b5 into pandas-dev:master Aug 19, 2019
@TomAugspurger
Copy link
Contributor

Thanks!

@jbrockmendel jbrockmendel deleted the should2 branch August 19, 2019 21:57
EunSeop pushed a commit to EunSeop/pandas that referenced this pull request Aug 20, 2019
galuhsahid pushed a commit to galuhsahid/pandas that referenced this pull request Aug 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ExtensionArray Extending pandas with custom dtypes or arrays.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants