Skip to content

Commit

Permalink
FIX-modin-project#2254: Fixed dict aggregate for base backend
Browse files Browse the repository at this point in the history
Signed-off-by: Gregory Shimansky <gregory.shimansky@intel.com>
  • Loading branch information
gshimansky committed Nov 10, 2020
1 parent c1dc213 commit 9eea77c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ def fn(

grp = df.groupby(by, axis=axis, **groupby_args)
agg_func = cls.get_func(grp, key, **kwargs)
result = agg_func(grp, **agg_args)
if isinstance(agg_func, dict):
result = grp.agg(agg_func, **agg_args)
else:
result = agg_func(grp, **agg_args)

if not is_multi_by:
if as_index:
Expand Down

0 comments on commit 9eea77c

Please sign in to comment.