Skip to content

Commit 9c7c486

Browse files
committed
Removed unused freq arg from test case
1 parent b9ebc8d commit 9c7c486

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

pandas/tests/groupby/test_groupby.py

+8-10
Original file line numberDiff line numberDiff line change
@@ -2141,25 +2141,23 @@ def test_groupby_bool_aggs(self, agg_func, skipna, vals):
21412141
result = getattr(df.groupby('key'), agg_func)(skipna=skipna)
21422142
assert_frame_equal(result, exp_df)
21432143

2144-
@pytest.mark.parametrize("periods,fill_method,limit,freq", [
2145-
(1, 'ffill', None, None), (1, 'ffill', 1, None),
2146-
(1, 'bfill', None, None), (1, 'bfill', 1, None),
2147-
(-1, 'ffill', None, None), (-1, 'ffill', 1, None),
2148-
(-1, 'bfill', None, None), (-1, 'bfill', 1, None)])
2149-
def test_pct_change(self, periods, fill_method, limit, freq):
2144+
@pytest.mark.parametrize("periods,fill_method,limit", [
2145+
(1, 'ffill', None), (1, 'ffill', 1),
2146+
(1, 'bfill', None), (1, 'bfill', 1),
2147+
(-1, 'ffill', None), (-1, 'ffill', 1),
2148+
(-1, 'bfill', None), (-1, 'bfill', 1)])
2149+
def test_pct_change(self, periods, fill_method, limit):
21502150
vals = [np.nan, np.nan, 1, 2, 4, 10, np.nan, np.nan]
21512151
exp_vals = Series(vals).pct_change(periods=periods,
21522152
fill_method=fill_method,
2153-
limit=limit,
2154-
freq=freq).tolist()
2153+
limit=limit).tolist()
21552154

21562155
df = DataFrame({'key': ['a'] * len(vals) + ['b'] * len(vals),
21572156
'vals': vals * 2})
21582157
exp = DataFrame({'vals': exp_vals * 2})
21592158
result = df.groupby('key').pct_change(periods=periods,
21602159
fill_method=fill_method,
2161-
limit=limit,
2162-
freq=freq)
2160+
limit=limit)
21632161

21642162
tm.assert_frame_equal(result, exp)
21652163

0 commit comments

Comments
 (0)