def __array_wrap__(self, result, context=None):
result = lib.item_from_zerodim(result)<EOL>if is_bool_dtype(result) or lib.is_scalar(result):<EOL><INDENT>return result<EOL><DEDENT>attrs = self._get_attributes_dict()<EOL>attrs = self._maybe_update_attributes(attrs)<EOL>return Index(result, **attrs)<EOL>
Gets called after a ufunc.