#NEWLINE# def _skew_kurt_wrap( self , values , axis = None , func = None ) : #NEWLINE# #INDENT# if ( not isinstance ( values . dtype . type , np . floating ) ) : #NEWLINE# #INDENT# values = values . astype ( 'f8' ) #NEWLINE# #UNINDENT# result = func ( values , axis = axis , bias = False ) #NEWLINE# if isinstance ( result , np . ndarray ) : #NEWLINE# #INDENT# result [ ( np . max ( values , axis = axis ) == np . min ( values , axis = axis ) ) ] = 0 #NEWLINE# return result #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( np . max ( values ) == np . min ( values ) ) : #NEWLINE# #INDENT# return 0.0 #NEWLINE# #UNINDENT# #UNINDENT# return func