def _apply_loffset(self, result):
needs_offset = (<EOL>isinstance(self.loffset, (DateOffset, timedelta,<EOL>np.timedelta64)) and<EOL>isinstance(result.index, DatetimeIndex) and<EOL>len(result.index) > <NUM_LIT:0><EOL>)<EOL>if needs_offset:<EOL><INDENT>result.index = result.index + self.loffset<EOL><DEDENT>self.loffset = None<EOL>return result<EOL>
If loffset is set, offset the result index.

This is NOT an idempotent routine, it will be applied
exactly once to the result.

Parameters
----------
result : Series or DataFrame
    the result of resample