Skip to content

Commit

Permalink
Handle str before other Iterables.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice committed Apr 18, 2022
1 parent c903f2d commit 816319d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/cudf/cudf/core/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -3001,10 +3001,10 @@ def agg(self, aggs, axis=None):
elif all([isinstance(val, abc.Iterable) for val in aggs.values()]):
idxs = set()
for val in aggs.values():
if isinstance(val, abc.Iterable):
idxs.update(val)
elif isinstance(val, str):
if isinstance(val, str):
idxs.add(val)
elif isinstance(val, abc.Iterable):
idxs.update(val)
idxs = sorted(list(idxs))
for agg in idxs:
if agg is callable:
Expand Down

0 comments on commit 816319d

Please sign in to comment.