Skip to content

Commit 84981d2

Browse files
committed
Aligned with [pre-commit] test
1 parent 085abb2 commit 84981d2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pandas/tests/groupby/test_grouping.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ def test_getitem_single_column(self):
125125
tm.assert_series_equal(result, expected)
126126

127127
def test_indices_grouped_by_tuple_with_lambda(self):
128-
df = pd.DataFrame({'Tuples': ((x, y)
129-
for x in [0, 1]
130-
for y in np.random.randint(3, 5, 5))})
128+
df = pd.DataFrame(
129+
{"Tuples": ((x, y) for x in [0, 1] for y in np.random.randint(3, 5, 5))}
130+
)
131131
gb = df.groupby('Tuples')
132132
gb_lambda = df.groupby(lambda x: df.iloc[x, 0])
133133
expected = gb.indices
@@ -785,9 +785,9 @@ def test_get_group_grouped_by_tuple(self):
785785
tm.assert_frame_equal(result, expected)
786786

787787
def test_get_group_grouped_by_tuple_with_lambda(self):
788-
df = pd.DataFrame({'Tuples': ((x, y)
789-
for x in [0, 1]
790-
for y in np.random.randint(3, 5, 5))})
788+
df = pd.DataFrame(
789+
{"Tuples": ((x, y) for x in [0, 1] for y in np.random.randint(3, 5, 5))}
790+
)
791791
gb = df.groupby('Tuples')
792792
gb_lambda = df.groupby(lambda x: df.iloc[x, 0])
793793
expected = gb.get_group(list(gb.groups.keys())[0])

0 commit comments

Comments
 (0)