Skip to content

Commit

Permalink
PEP8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd committed Feb 19, 2018
1 parent 0068948 commit efac226
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pandas/core/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -4637,7 +4637,7 @@ def _fill(self, direction, limit=None):
res = super()._fill(direction, limit=limit)
output = collections.OrderedDict(
(grp.name, grp.group_index.take(grp.labels)) for grp in
self.grouper.groupings)
self.grouper.groupings)

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

Expand Down
5 changes: 2 additions & 3 deletions pandas/tests/groupby/test_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,9 +552,8 @@ def test_cython_transform_frame(self, op, args, targop):
tm.assert_frame_equal(expected,
gb.transform(op, *args).sort_index(
axis=1))
tm.assert_frame_equal(expected,
getattr(gb, op)(*args).sort_index(axis=1)
)
tm.assert_frame_equal(expected, getattr(
gb, op)(*args).sort_index(axis=1))
# individual columns
for c in df:
if c not in ['float', 'int', 'float_missing'
Expand Down

0 comments on commit efac226

Please sign in to comment.