Skip to content

Commit 5db6c07

Browse files
committed
Add correct groups object
1 parent dbb7d12 commit 5db6c07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/core/groupby/ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def groups(self):
241241
else:
242242
to_groupby = lzip(*(ping.grouper for ping in self.groupings))
243243
to_groupby = Index(to_groupby)
244-
return BaseGrouperGroups(self.axis.groupby(to_groupby))
244+
return self.axis.groupby(to_groupby)
245245

246246
@cache_readonly
247247
def is_monotonic(self):

pandas/core/indexes/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4494,7 +4494,7 @@ def groupby(self, values):
44944494
# map to the label
44954495
result = {k: self.take(v) for k, v in compat.iteritems(result)}
44964496

4497-
return BaseGroupbyGroups(result)
4497+
return IndexGroupbyGroups(result)
44984498

44994499
def map(self, mapper, na_action=None):
45004500
"""

0 commit comments

Comments
 (0)