def __array_wrap__(self, result, context=None):
        if is_bool_dtype(result):
            return result

        attrs = self._get_attributes_dict()
        attrs = self._maybe_update_attributes(attrs)
        return Index(result, **attrs)
Gets called after a ufunc
dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index.__array_wrap__