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 @@ -1180,7 +1180,7 @@ def _extract_unknown_groups(reduced, dtype) -> tuple[DaskArray]:
11801180 dask .array .Array (
11811181 HighLevelGraph .from_collections (groups_token , layer , dependencies = [reduced ]),
11821182 groups_token ,
1183- chunks = (np .nan ,),
1183+ chunks = (( np .nan ,) ,),
11841184 meta = np .array ([], dtype = dtype ),
11851185 ),
11861186 )
@@ -1327,12 +1327,12 @@ def dask_groupby_agg(
13271327 )
13281328 if is_duck_dask_array (by_input ) and expected_groups is None :
13291329 groups = _extract_unknown_groups (reduced , dtype = by .dtype )
1330- group_chunks = (np .nan ,)
1330+ group_chunks = (( np .nan ,) ,)
13311331 else :
13321332 if expected_groups is None :
13331333 expected_groups = _get_expected_groups (by_input , sort = sort )
13341334 groups = (expected_groups .to_numpy (),)
1335- group_chunks = ((len (expected_groups ),),)
1335+ group_chunks = ((len (expected_groups ),),)
13361336
13371337 elif method == "cohorts" :
13381338 chunks_cohorts = find_group_cohorts (
You can’t perform that action at this time.
0 commit comments