Skip to content

Commit e16a945

Browse files
authored
CLN: Use exclusions in determination of _selected_obj (#50416)
1 parent 28e8a34 commit e16a945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/groupby/groupby.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ def _set_group_selection(self) -> None:
10211021
):
10221022
return
10231023

1024-
groupers = [g.name for g in grp.groupings if g.level is None and g.in_axis]
1024+
groupers = self.exclusions
10251025

10261026
if len(groupers):
10271027
# GH12839 clear selected obj cache when group selection changes

0 commit comments

Comments
 (0)