@@ -119,8 +119,8 @@ def test_expanding_corr_pairwise(frame):
119
119
ids = ["sum" , "mean" , "max" , "min" ],
120
120
)
121
121
def test_expanding_func (func , static_comp , has_min_periods , series , frame , nan_locs ):
122
- def expanding_func (x , min_periods = 1 , center = False , axis = 0 ):
123
- exp = x .expanding (min_periods = min_periods , center = center , axis = axis )
122
+ def expanding_func (x , min_periods = 1 , axis = 0 ):
123
+ exp = x .expanding (min_periods = min_periods , axis = axis )
124
124
return getattr (exp , func )()
125
125
126
126
_check_expanding (
@@ -166,7 +166,7 @@ def test_expanding_apply_consistency(
166
166
167
167
with warnings .catch_warnings ():
168
168
warnings .filterwarnings (
169
- "ignore" , message = ".*(empty slice|0 for slice).*" , category = RuntimeWarning ,
169
+ "ignore" , message = ".*(empty slice|0 for slice).*" , category = RuntimeWarning
170
170
)
171
171
# test consistency between expanding_xyz() and either (a)
172
172
# expanding_apply of Series.xyz(), or (b) expanding_apply of
@@ -267,7 +267,7 @@ def test_expanding_consistency(consistency_data, min_periods):
267
267
# with empty/0-length Series/DataFrames
268
268
with warnings .catch_warnings ():
269
269
warnings .filterwarnings (
270
- "ignore" , message = ".*(empty slice|0 for slice).*" , category = RuntimeWarning ,
270
+ "ignore" , message = ".*(empty slice|0 for slice).*" , category = RuntimeWarning
271
271
)
272
272
273
273
# test consistency between different expanding_* moments
@@ -454,7 +454,7 @@ def test_expanding_cov_pairwise_diff_length():
454
454
def test_expanding_corr_pairwise_diff_length ():
455
455
# GH 7512
456
456
df1 = DataFrame (
457
- [[1 , 2 ], [3 , 2 ], [3 , 4 ]], columns = ["A" , "B" ], index = Index (range (3 ), name = "bar" ),
457
+ [[1 , 2 ], [3 , 2 ], [3 , 4 ]], columns = ["A" , "B" ], index = Index (range (3 ), name = "bar" )
458
458
)
459
459
df1a = DataFrame (
460
460
[[1 , 2 ], [3 , 4 ]], index = Index ([0 , 2 ], name = "bar" ), columns = ["A" , "B" ]
0 commit comments