Skip to content

Commit 1e2d8ec

Browse files
committed
ENH: don't make unnecessary data copy in groupby
1 parent bf543f7 commit 1e2d8ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/groupby.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@ def aggregate(self, arg, *args, **kwargs):
15791579
if self.axis != 0: # pragma: no cover
15801580
raise ValueError('Can only pass dict with axis=0')
15811581

1582-
obj = self._obj_with_exclusions
1582+
obj = self.obj
15831583

15841584
if any(isinstance(x, (list, tuple, dict)) for x in arg.values()):
15851585
new_arg = OrderedDict()

0 commit comments

Comments
 (0)