Skip to content

Commit bf3d942

Browse files
committed
Fixes
1 parent 5be5a35 commit bf3d942

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flox/core.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ def _extract_unknown_groups(reduced, dtype) -> tuple[DaskArray]:
11711171
dask.array.Array(
11721172
HighLevelGraph.from_collections(groups_token, layer, dependencies=[reduced]),
11731173
groups_token,
1174-
chunks=(np.nan,),
1174+
chunks=((np.nan,),),
11751175
meta=np.array([], dtype=dtype),
11761176
),
11771177
)
@@ -1316,12 +1316,12 @@ def dask_groupby_agg(
13161316
)
13171317
if is_duck_dask_array(by_input) and expected_groups is None:
13181318
groups = _extract_unknown_groups(reduced, dtype=by.dtype)
1319-
group_chunks = (np.nan,)
1319+
group_chunks = ((np.nan,),)
13201320
else:
13211321
if expected_groups is None:
13221322
expected_groups = _get_expected_groups(by_input, sort=sort)
13231323
groups = (expected_groups.to_numpy(),)
1324-
group_chunks = ((len(expected_groups),),)
1324+
group_chunks = ((len(expected_groups),),)
13251325

13261326
elif method == "cohorts":
13271327
chunks_cohorts = find_group_cohorts(

0 commit comments

Comments
 (0)