Skip to content

Commit efac226

Browse files
committed
PEP8 fixes
1 parent 0068948 commit efac226

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pandas/core/groupby.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4637,7 +4637,7 @@ def _fill(self, direction, limit=None):
46374637
res = super()._fill(direction, limit=limit)
46384638
output = collections.OrderedDict(
46394639
(grp.name, grp.group_index.take(grp.labels)) for grp in
4640-
self.grouper.groupings)
4640+
self.grouper.groupings)
46414641

46424642
return self._wrap_transformed_output(output).join(res)
46434643

pandas/tests/groupby/test_transform.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,8 @@ def test_cython_transform_frame(self, op, args, targop):
552552
tm.assert_frame_equal(expected,
553553
gb.transform(op, *args).sort_index(
554554
axis=1))
555-
tm.assert_frame_equal(expected,
556-
getattr(gb, op)(*args).sort_index(axis=1)
557-
)
555+
tm.assert_frame_equal(expected, getattr(
556+
gb, op)(*args).sort_index(axis=1))
558557
# individual columns
559558
for c in df:
560559
if c not in ['float', 'int', 'float_missing'

0 commit comments

Comments
 (0)