@@ -803,9 +803,8 @@ def alt(x):
803803 assert kurt .name is None
804804 assert kurt2 .name == 'bar'
805805
806- # underscores added to distinguish argument names from fixture names
807- def _check_stat_op (self , name , alternative , main_frame , float_frame_ ,
808- float_string_frame_ , has_skipna = True ,
806+ def _check_stat_op (self , name , alternative , main_frame , float_frame ,
807+ float_string_frame , has_skipna = True ,
809808 has_numeric_only = False , check_dtype = True ,
810809 check_dates = False , check_less_precise = False ,
811810 skipna_alternative = None ):
@@ -860,18 +859,18 @@ def wrapper(x):
860859 # bad axis
861860 tm .assert_raises_regex (ValueError , 'No axis named 2' , f , axis = 2 )
862861 # make sure works on mixed-type frame
863- getattr (float_string_frame_ , name )(axis = 0 )
864- getattr (float_string_frame_ , name )(axis = 1 )
862+ getattr (float_string_frame , name )(axis = 0 )
863+ getattr (float_string_frame , name )(axis = 1 )
865864
866865 if has_numeric_only :
867- getattr (float_string_frame_ , name )(axis = 0 , numeric_only = True )
868- getattr (float_string_frame_ , name )(axis = 1 , numeric_only = True )
869- getattr (float_frame_ , name )(axis = 0 , numeric_only = False )
870- getattr (float_frame_ , name )(axis = 1 , numeric_only = False )
866+ getattr (float_string_frame , name )(axis = 0 , numeric_only = True )
867+ getattr (float_string_frame , name )(axis = 1 , numeric_only = True )
868+ getattr (float_frame , name )(axis = 0 , numeric_only = False )
869+ getattr (float_frame , name )(axis = 1 , numeric_only = False )
871870
872871 # all NA case
873872 if has_skipna :
874- all_na = float_frame_ * np .NaN
873+ all_na = float_frame * np .NaN
875874 r0 = getattr (all_na , name )(axis = 0 )
876875 r1 = getattr (all_na , name )(axis = 1 )
877876 if name in ['sum' , 'prod' ]:
0 commit comments