#NEWLINE# def _divide( self , estimate ) : #NEWLINE# #INDENT# class_name = self . __class__ . __name__ #NEWLINE# doc_string = ( '\n            Divide the %s of two %s objects.\n\n            Parameters:\n              other: an %s fitted instance.\n\n            ' % ( class_name , class_name , class_name ) ) #NEWLINE# def divide( other ) : #NEWLINE# #INDENT# self_estimate = getattr ( self , estimate ) #NEWLINE# other_estimate = getattr ( other , estimate ) #NEWLINE# new_index = np . concatenate ( ( other_estimate . index , self_estimate . index ) ) #NEWLINE# new_index = np . unique ( new_index ) #NEWLINE# return ( self_estimate . reindex ( new_index , method = 'ffill' ) / other_estimate . reindex ( new_index , method = 'ffill' ) ) #NEWLINE# #UNINDENT# divide . __doc__ = doc_string #NEWLINE# return divide