Skip to content

Commit

Permalink
fix(pandas): compatibility with 2.1 groupby behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Aug 30, 2023
1 parent ec0514b commit ab3fc9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ibis/backends/pandas/execution/generic.py
Expand Up @@ -588,7 +588,10 @@ def execute_aggregation_dataframe(
)
for key in op.by
]
source = data.groupby(grouping_keys, group_keys=False)
source = data.groupby(
grouping_keys[0] if len(grouping_keys) == 1 else grouping_keys,
group_keys=False,
)
else:
source = data

Expand Down

0 comments on commit ab3fc9e

Please sign in to comment.