Skip to content

Commit a4c6ab5

Browse files
committed
Revert "Avoid dispatching to pandas searchsorted"
This reverts commit 9aab6a4c194fa5c14b1f28ccb89dc7f8f8ebaa7d.
1 parent f10c609 commit a4c6ab5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flox/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def factorize_(
447447
if expect is not None and reindex:
448448
sorter = np.argsort(expect)
449449
groups = expect[(sorter,)] if sort else expect
450-
idx = np.searchsorted(expect.values, flat, sorter=sorter)
450+
idx = np.searchsorted(expect, flat, sorter=sorter)
451451
mask = ~np.isin(flat, expect) | isnull(flat) | (idx == len(expect))
452452
if not sort:
453453
# idx is the index in to the sorted array.

0 commit comments

Comments
 (0)