Skip to content

Commit

Permalink
proivide >= 1 agg
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt711 committed Aug 11, 2024
1 parent 68d8007 commit fada974
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/cudf/cudf/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -1298,6 +1298,8 @@ def _normalize_aggs(
column_names, aggs_per_column = kwargs.keys(), kwargs.values()
columns = tuple(self.obj._data[x[1][0]] for x in kwargs.items())
aggs_per_column = [x[1] for x in kwargs.values()]
else:
raise TypeError("Must provide at least one aggregation function.")

# is_list_like performs type narrowing but type-checkers don't
# know it. One could add a TypeGuard annotation to
Expand Down

0 comments on commit fada974

Please sign in to comment.