@@ -91,19 +91,18 @@ def wrapper(x):
91
91
tm .assert_series_equal (r1 , expected )
92
92
93
93
94
- # underscores added to distinguish argument names from fixture names
95
- def assert_stat_op_api (opname , float_frame_ , float_string_frame_ ,
94
+ def assert_stat_op_api (opname , float_frame , float_string_frame ,
96
95
has_numeric_only = False ):
97
96
98
97
# make sure works on mixed-type frame
99
- getattr (float_string_frame_ , opname )(axis = 0 )
100
- getattr (float_string_frame_ , opname )(axis = 1 )
98
+ getattr (float_string_frame , opname )(axis = 0 )
99
+ getattr (float_string_frame , opname )(axis = 1 )
101
100
102
101
if has_numeric_only :
103
- getattr (float_string_frame_ , opname )(axis = 0 , numeric_only = True )
104
- getattr (float_string_frame_ , opname )(axis = 1 , numeric_only = True )
105
- getattr (float_frame_ , opname )(axis = 0 , numeric_only = False )
106
- getattr (float_frame_ , opname )(axis = 1 , numeric_only = False )
102
+ getattr (float_string_frame , opname )(axis = 0 , numeric_only = True )
103
+ getattr (float_string_frame , opname )(axis = 1 , numeric_only = True )
104
+ getattr (float_frame , opname )(axis = 0 , numeric_only = False )
105
+ getattr (float_frame , opname )(axis = 1 , numeric_only = False )
107
106
108
107
109
108
def assert_bool_op_calc (opname , alternative , main_frame , has_skipna = True ):
@@ -149,11 +148,10 @@ def wrapper(x):
149
148
assert r1 .all ()
150
149
151
150
152
- # underscores added to distinguish argument names from fixture names
153
- def assert_bool_op_api (opname , bool_frame_with_na_ , float_string_frame_ ,
151
+ def assert_bool_op_api (opname , bool_frame_with_na , float_string_frame ,
154
152
has_bool_only = False ):
155
153
# make sure op works on mixed-type frame
156
- mixed = float_string_frame_
154
+ mixed = float_string_frame
157
155
mixed ['_bool_' ] = np .random .randn (len (mixed )) > 0.5
158
156
getattr (mixed , opname )(axis = 0 )
159
157
getattr (mixed , opname )(axis = 1 )
@@ -168,8 +166,8 @@ def __nonzero__(self):
168
166
if has_bool_only :
169
167
getattr (mixed , opname )(axis = 0 , bool_only = True )
170
168
getattr (mixed , opname )(axis = 1 , bool_only = True )
171
- getattr (bool_frame_with_na_ , opname )(axis = 0 , bool_only = False )
172
- getattr (bool_frame_with_na_ , opname )(axis = 1 , bool_only = False )
169
+ getattr (bool_frame_with_na , opname )(axis = 0 , bool_only = False )
170
+ getattr (bool_frame_with_na , opname )(axis = 1 , bool_only = False )
173
171
174
172
175
173
class TestDataFrameAnalytics ():
0 commit comments