

def __sub__(self, other):
    warnings.warn("using '-' to provide set differences with Indexes is deprecated, use .difference()", FutureWarning, stacklevel=2)
    return self.difference(other)

dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py Index.__sub__/original