

def __array_wrap__(self, result, context=None):
    '\n        Gets called after a ufunc\n        '
    if is_bool_dtype(result):
        return result
    attrs = self._get_attributes_dict()
    attrs = self._maybe_update_attributes(attrs)
    return Index(result, **attrs)

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