Skip to content

Commit 422c0f3

Browse files
committed
Code update - swap group_index.take with grouper
1 parent 5e6d811 commit 422c0f3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/groupby.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -4649,8 +4649,7 @@ def _fill(self, direction, limit=None):
46494649
"""Overriden method to join grouped columns in output"""
46504650
res = super(DataFrameGroupBy, self)._fill(direction, limit=limit)
46514651
output = collections.OrderedDict(
4652-
(grp.name, grp.group_index.take(grp.labels)) for grp in
4653-
self.grouper.groupings)
4652+
(grp.name, grp.grouper) for grp in self.grouper.groupings)
46544653

46554654
from pandas.core.reshape.concat import concat
46564655
return concat((self._wrap_transformed_output(output), res), axis=1)

0 commit comments

Comments
 (0)