@@ -119,8 +119,8 @@ def test_expanding_corr_pairwise(frame):
119119 ids = ["sum" , "mean" , "max" , "min" ],
120120)
121121def 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 )
124124 return getattr (exp , func )()
125125
126126 _check_expanding (
@@ -166,7 +166,7 @@ def test_expanding_apply_consistency(
166166
167167 with warnings .catch_warnings ():
168168 warnings .filterwarnings (
169- "ignore" , message = ".*(empty slice|0 for slice).*" , category = RuntimeWarning ,
169+ "ignore" , message = ".*(empty slice|0 for slice).*" , category = RuntimeWarning
170170 )
171171 # test consistency between expanding_xyz() and either (a)
172172 # expanding_apply of Series.xyz(), or (b) expanding_apply of
@@ -267,7 +267,7 @@ def test_expanding_consistency(consistency_data, min_periods):
267267 # with empty/0-length Series/DataFrames
268268 with warnings .catch_warnings ():
269269 warnings .filterwarnings (
270- "ignore" , message = ".*(empty slice|0 for slice).*" , category = RuntimeWarning ,
270+ "ignore" , message = ".*(empty slice|0 for slice).*" , category = RuntimeWarning
271271 )
272272
273273 # test consistency between different expanding_* moments
@@ -454,7 +454,7 @@ def test_expanding_cov_pairwise_diff_length():
454454def test_expanding_corr_pairwise_diff_length ():
455455 # GH 7512
456456 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" )
458458 )
459459 df1a = DataFrame (
460460 [[1 , 2 ], [3 , 4 ]], index = Index ([0 , 2 ], name = "bar" ), columns = ["A" , "B" ]
0 commit comments