def _wrap_range_setop(self, other, res_i8):
    new_freq = None
    if (not len(res_i8)):
        new_freq = self.freq
    elif isinstance(res_i8, RangeIndex):
        new_freq = to_offset(Timedelta(res_i8.step))
        res_i8 = res_i8
    res_values = res_i8.values.view(self._data._ndarray.dtype)
    result = type(self._data)._simple_new(res_values, dtype=self.dtype, freq=new_freq)
    return self._wrap_setop_result(other, result)
def _wrap_range_setop(self, other, res_i8):
    new_freq = None
    if (not len(res_i8)):
        new_freq = self.freq
    elif isinstance(res_i8, RangeIndex):
        new_freq = to_offset(Timedelta(res_i8.step))
        res_i8 = res_i8
    res_values = res_i8.values.view(self._data._ndarray.dtype)
    result = type(self._data)._simple_new(res_values, dtype=self.dtype, freq=new_freq)
    return self._wrap_setop_result(other, result)