diff --git a/pandas/core/index.py b/pandas/core/index.py index 065dcd90b8d76..463b17ccb4631 100644 --- a/pandas/core/index.py +++ b/pandas/core/index.py @@ -1141,7 +1141,10 @@ def __add__(self, other): __ge__ = _indexOp('__ge__') def __sub__(self, other): - return self.diff(other) + if isinstance(other, Index): + return self.diff(other) + else: + return Index(np.array(self) - other) def __and__(self, other): return self.intersection(other)