

def _convert_can_do_setop(self, other):
    if (not isinstance(other, Index)):
        other = Index(other, name=self.name)
        result_name = self.name
    else:
        result_name = (self.name if (self.name == other.name) else None)
    return (other, other)

dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py Index._convert_can_do_setop/VarMisuse@74/86 `result_name`->`other`