File tree 1 file changed +3
-3
lines changed
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]:
1171
1171
dask .array .Array (
1172
1172
HighLevelGraph .from_collections (groups_token , layer , dependencies = [reduced ]),
1173
1173
groups_token ,
1174
- chunks = (np .nan ,),
1174
+ chunks = (( np .nan ,) ,),
1175
1175
meta = np .array ([], dtype = dtype ),
1176
1176
),
1177
1177
)
@@ -1316,12 +1316,12 @@ def dask_groupby_agg(
1316
1316
)
1317
1317
if is_duck_dask_array (by_input ) and expected_groups is None :
1318
1318
groups = _extract_unknown_groups (reduced , dtype = by .dtype )
1319
- group_chunks = (np .nan ,)
1319
+ group_chunks = (( np .nan ,) ,)
1320
1320
else :
1321
1321
if expected_groups is None :
1322
1322
expected_groups = _get_expected_groups (by_input , sort = sort )
1323
1323
groups = (expected_groups .to_numpy (),)
1324
- group_chunks = ((len (expected_groups ),),)
1324
+ group_chunks = ((len (expected_groups ),),)
1325
1325
1326
1326
elif method == "cohorts" :
1327
1327
chunks_cohorts = find_group_cohorts (
You can’t perform that action at this time.
0 commit comments