We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5cf26e commit b6a7edcCopy full SHA for b6a7edc
flox/core.py
@@ -522,7 +522,7 @@ def factorize_(
522
# this is important in shared-memory parallelism with dask
523
# TODO: figure out how to avoid this
524
idx = flat.copy()
525
- found_groups.append(np.array(expect, like=flat))
+ found_groups.append(np.array(expect, like=flat, copy=False))
526
# TODO: fix by using masked integers
527
idx[idx > expect[-1]] = -1
528
@@ -538,7 +538,9 @@ def factorize_(
538
idx = np.digitize(
539
flat,
540
bins=np.array(
541
- bins.view(np.intp) if bins.dtype.kind == "M" else bins, like=flat
+ bins.view(np.intp) if bins.dtype.kind == "M" else bins,
542
+ like=flat,
543
+ copy=False,
544
),
545
right=right,
546
)
0 commit comments