Skip to content

Commit 759694b

Browse files
committed
Fix sort being specified twice.
1 parent 1468aeb commit 759694b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flox/core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1548,12 +1548,12 @@ def groupby_reduce(
15481548
# overwrite than when min_count is set
15491549
fill_value = np.nan
15501550

1551-
kwargs = dict(axis=axis, fill_value=fill_value, engine=engine, sort=sort)
1551+
kwargs = dict(axis=axis, fill_value=fill_value, engine=engine)
15521552
agg = _initialize_aggregation(func, array.dtype, fill_value, min_count, finalize_kwargs)
15531553

15541554
if not has_dask:
15551555
results = _reduce_blockwise(
1556-
array, by, agg, expected_groups=expected_groups, reindex=reindex, **kwargs
1556+
array, by, agg, expected_groups=expected_groups, reindex=reindex, sort=sort, **kwargs
15571557
)
15581558
groups = (results["groups"],)
15591559
result = results[agg.name]

0 commit comments

Comments
 (0)