Skip to content

Commit 1fc9ca1

Browse files
committed
Avoid realizing a potentially very large RangeIndex in to memory
xref #428
1 parent 9e82b66 commit 1fc9ca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flox/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,7 @@ def dask_groupby_agg(
17301730
group_chunks = ((np.nan,),)
17311731
else:
17321732
assert expected_groups is not None
1733-
groups = (expected_groups.to_numpy(),)
1733+
groups = (expected_groups,)
17341734
group_chunks = ((len(expected_groups),),)
17351735

17361736
elif method == "cohorts":

0 commit comments

Comments
 (0)