We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afe0cc3 commit 9777e84Copy full SHA for 9777e84
pandas/core/ops/__init__.py
@@ -829,6 +829,13 @@ def wrapper(self, other):
829
# Defer to DataFrame implementation; fail early
830
return NotImplemented
831
832
+ elif should_extension_dispatch(self, other):
833
+ lvalues = extract_array(self, extract_numpy=True)
834
+ rvalues = extract_array(other, extract_numpy=True)
835
+ res_values = dispatch_to_extension_op(op, lvalues, rvalues)
836
+ result = self._constructor(res_values, index=self.index, name=res_name)
837
+ return finalizer(result)
838
+
839
elif isinstance(other, (ABCSeries, ABCIndexClass)):
840
is_other_int_dtype = is_integer_dtype(other.dtype)
841
other = other if is_other_int_dtype else fill_bool(other)
0 commit comments