File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments