#NEWLINE# def _add_offset( self , offset ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if ( self . tz is not None ) : #NEWLINE# #INDENT# values = self . tz_localize ( None ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# values = self #NEWLINE# #UNINDENT# result = offset . apply_index ( values ) #NEWLINE# if ( self . tz is not None ) : #NEWLINE# #INDENT# result = result . tz_localize ( self . tz ) #NEWLINE# #UNINDENT# return result #NEWLINE# #UNINDENT# except NotImplementedError : #NEWLINE# #INDENT# warnings . warn ( 'Non-vectorized DateOffset being applied to Series or DatetimeIndex' , PerformanceWarning ) #NEWLINE# return ( self . astype ( 'O' ) + values )