Skip to content

Commit 5cd7bcb

Browse files
committed
Better fix
1 parent 3b79f6e commit 5cd7bcb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

flox/core.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,10 @@ def dask_groupby_agg(
13501350
aggregate=partial(aggregate, expected_groups=index, reindex=True),
13511351
)
13521352
)
1353-
groups_.append(cohort)
1353+
# This is done because pandas promotes to 64-bit types when an Index is created
1354+
# So we use the index to generate the return value for consistency with "map-reduce"
1355+
# This is important on windows
1356+
groups_.append(index.values)
13541357

13551358
reduced = dask.array.concatenate(reduced_, axis=-1)
13561359
groups = (np.concatenate(groups_),)

0 commit comments

Comments
 (0)