#NEWLINE# def _reduce( self , op , name , axis = 0 , skipna = True , numeric_only = None , filter_type = None , **kwds ) : #NEWLINE# #INDENT# ' perform the reduction type operation if we can ' #NEWLINE# func = getattr ( self , name , None ) #NEWLINE# if ( func is None ) : #NEWLINE# #INDENT# raise TypeError ( '{klass} cannot perform the operation {op}' . format ( klass = self . __class__ . __name__ , op = name ) ) #NEWLINE# #UNINDENT# return func ( ** kwds )