#NEWLINE# def diff( self , periods = 1 ) : #NEWLINE# #INDENT# '\n        1st discrete difference of object\n\n        Parameters\n        ----------\n        periods : int, default 1\n            Periods to shift for forming difference\n\n        Returns\n        -------\n        diffed : Series\n        ' #NEWLINE# result = algos . diff ( _values_from_object ( self ) , periods ) #NEWLINE# return self . _constructor ( result , index = self . index ) . __finalize__ ( self )