Skip to content

Commit 0decc05

Browse files
committed
removed list usage in test parametrize
1 parent 00f2b44 commit 0decc05

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pandas/tests/reshape/test_pivot.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -1139,12 +1139,13 @@ def test_pivot_string_as_func(self):
11391139
columns=mi).rename_axis('A')
11401140
tm.assert_frame_equal(result, expected)
11411141

1142-
funcs = [('sum', np.sum), ('mean', np.mean), ('std', np.std),
1143-
(['sum', 'mean'], [np.sum, np.mean]),
1144-
(['sum', 'std'], [np.sum, np.std]),
1145-
(['std', 'mean'], [np.std, np.mean])]
1146-
1147-
@pytest.mark.parametrize("f, f_numpy", funcs)
1142+
@pytest.mark.parametrize('f, f_numpy',
1143+
[('sum', np.sum),
1144+
('mean', np.mean),
1145+
('std', np.std),
1146+
(['sum', 'mean'], [np.sum, np.mean]),
1147+
(['sum', 'std'], [np.sum, np.std]),
1148+
(['std', 'mean'], [np.std, np.mean])])
11481149
def test_pivot_string_func_vs_func(self, f, f_numpy):
11491150
# GH #18713
11501151
# for consistency purposes

0 commit comments

Comments
 (0)