Skip to content

Commit a0f1dcb

Browse files
TST: Fixed PEP 8 warnings pandas-dev#25581
1 parent b3dc515 commit a0f1dcb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/tests/groupby/aggregate/test_aggregate.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1414,12 +1414,13 @@ def test_multi_axis_1_raises(func):
14141414
with pytest.raises(NotImplementedError, match="axis other than 0 is not supported"):
14151415
gb.agg(func)
14161416

1417+
14171418
def test_agg_of_list():
14181419
# GH#25581
1419-
df1 = pd.DataFrame([[20, 'A'], [20, 'B'], [30, 'C']])
1420+
df1 = pd.DataFrame([[20, "A"], [20, "B"], [30, "C"]])
14201421
result = df1.groupby(0).agg(pd.Series.mode)
14211422

1422-
expected = pd.DataFrame({0: [20, 30], 1: [['A', 'B'], 'C']})
1423+
expected = pd.DataFrame({0: [20, 30], 1: [["A", "B"], "C"]})
14231424
expected = expected.set_index(0)
14241425

14251426
tm.assert_frame_equal(result, expected)

0 commit comments

Comments
 (0)