-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF: use dispatch_to_extension_op for bool ops #27959
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
elif should_extension_dispatch(self, other): | ||
# e.g. SparseArray | ||
res_values = dispatch_to_extension_op(op, self, other) | ||
return _construct_result(self, res_values, index=self.index, name=res_name) |
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.
Is res_values always an array, or can it be a tuple of results, like from divmod?
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 this context its always an array
on another branch im finding this is necessary for IntegerNA bitwise ops to behave correctly |
thanks @jbrockmendel |
This is failing on master and locally.
|
Yah, looks like this should be reverted for the time being |
re-implement #27959, which was previously merged and reverted.
re-implement pandas-dev#27959, which was previously merged and reverted.
re-implement pandas-dev#27959, which was previously merged and reverted.
Along with #27912 this completes the process of doing this for all Series ops. From there we can move the array-specific components to array_ops and define the PandasArray ops appropriately.