From 65457b45b221af30e4d8e535c3191a1025abf202 Mon Sep 17 00:00:00 2001 From: jbrockmendel Date: Mon, 2 Sep 2019 16:30:23 -0700 Subject: [PATCH] Revert #27959 --- pandas/core/ops/__init__.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index df097d7ad91dc..cc2d4ced1243f 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -829,11 +829,6 @@ def wrapper(self, other): # Defer to DataFrame implementation; fail early return NotImplemented - 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) - elif isinstance(other, (ABCSeries, ABCIndexClass)): is_other_int_dtype = is_integer_dtype(other.dtype) other = other if is_other_int_dtype else fill_bool(other)