def _add_delta_tdi(self, other):
if len(self) != len(other):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if isinstance(other, np.ndarray):<EOL><INDENT>from pandas import TimedeltaIndex<EOL>other = TimedeltaIndex(other)<EOL><DEDENT>self_i8 = self.asi8<EOL>other_i8 = other.asi8<EOL>new_values = checked_add_with_arr(self_i8, other_i8,<EOL>arr_mask=self._isnan,<EOL>b_mask=other._isnan)<EOL>if self._hasnans or other._hasnans:<EOL><INDENT>mask = (self._isnan) | (other._isnan)<EOL>new_values[mask] = iNaT<EOL><DEDENT>return new_values.view('<STR_LIT>')<EOL>
Add a delta of a TimedeltaIndex
return the i8 result view