Skip to content

Commit a0d92b6

Browse files
authored
CLN remove unnecessary trailing commas in groupby tests (#36059)
1 parent abe6ad8 commit a0d92b6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pandas/tests/groupby/test_timegrouper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,6 @@ def test_grouper_period_index(self):
780780
result = period_series.groupby(period_series.index.month).sum()
781781

782782
expected = pd.Series(
783-
range(0, periods), index=Index(range(1, periods + 1), name=index.name),
783+
range(0, periods), index=Index(range(1, periods + 1), name=index.name)
784784
)
785785
tm.assert_series_equal(result, expected)

pandas/tests/groupby/transform/test_numba.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def func(values, index):
5656
func = numba.jit(func)
5757

5858
data = DataFrame(
59-
{0: ["a", "a", "b", "b", "a"], 1: [1.0, 2.0, 3.0, 4.0, 5.0]}, columns=[0, 1],
59+
{0: ["a", "a", "b", "b", "a"], 1: [1.0, 2.0, 3.0, 4.0, 5.0]}, columns=[0, 1]
6060
)
6161
engine_kwargs = {"nogil": nogil, "parallel": parallel, "nopython": nopython}
6262
grouped = data.groupby(0)
@@ -89,7 +89,7 @@ def func_2(values, index):
8989
func_2 = numba.jit(func_2)
9090

9191
data = DataFrame(
92-
{0: ["a", "a", "b", "b", "a"], 1: [1.0, 2.0, 3.0, 4.0, 5.0]}, columns=[0, 1],
92+
{0: ["a", "a", "b", "b", "a"], 1: [1.0, 2.0, 3.0, 4.0, 5.0]}, columns=[0, 1]
9393
)
9494
engine_kwargs = {"nogil": nogil, "parallel": parallel, "nopython": nopython}
9595
grouped = data.groupby(0)
@@ -120,7 +120,7 @@ def func_1(values, index):
120120
return values + 1
121121

122122
data = DataFrame(
123-
{0: ["a", "a", "b", "b", "a"], 1: [1.0, 2.0, 3.0, 4.0, 5.0]}, columns=[0, 1],
123+
{0: ["a", "a", "b", "b", "a"], 1: [1.0, 2.0, 3.0, 4.0, 5.0]}, columns=[0, 1]
124124
)
125125
grouped = data.groupby(0)
126126
expected = grouped.transform(func_1, engine="numba")

0 commit comments

Comments
 (0)