@@ -803,9 +803,8 @@ def alt(x):
803
803
assert kurt .name is None
804
804
assert kurt2 .name == 'bar'
805
805
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 ,
809
808
has_numeric_only = False , check_dtype = True ,
810
809
check_dates = False , check_less_precise = False ,
811
810
skipna_alternative = None ):
@@ -860,18 +859,18 @@ def wrapper(x):
860
859
# bad axis
861
860
tm .assert_raises_regex (ValueError , 'No axis named 2' , f , axis = 2 )
862
861
# 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 )
865
864
866
865
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 )
871
870
872
871
# all NA case
873
872
if has_skipna :
874
- all_na = float_frame_ * np .NaN
873
+ all_na = float_frame * np .NaN
875
874
r0 = getattr (all_na , name )(axis = 0 )
876
875
r1 = getattr (all_na , name )(axis = 1 )
877
876
if name in ['sum' , 'prod' ]:
0 commit comments