Skip to content

Commit ea26faa

Browse files
committed
Revert "Use factorizers in reshape"
This reverts commit 27e92d6.
1 parent defedd2 commit ea26faa

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

pandas/core/reshape/merge.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
hashtable as libhashtable,
2626
join as libjoin,
2727
lib,
28-
new_vector as nv,
2928
)
3029
from pandas._libs.lib import is_range_indexer
3130
from pandas._typing import (
@@ -108,18 +107,18 @@
108107
from pandas.core.arrays import DatetimeArray
109108

110109
_factorizers = {
111-
np.int64: nv.Int64Factorizer,
112-
np.longlong: nv.Int64Factorizer,
113-
np.int32: nv.Int32Factorizer,
114-
np.int16: nv.Int16Factorizer,
115-
np.int8: nv.Int8Factorizer,
116-
np.uint64: nv.UInt64Factorizer,
117-
np.uint32: nv.UInt32Factorizer,
118-
np.uint16: nv.UInt16Factorizer,
119-
np.uint8: nv.UInt8Factorizer,
120-
np.bool_: nv.UInt8Factorizer,
121-
np.float64: nv.Float64Factorizer,
122-
np.float32: nv.Float32Factorizer,
110+
np.int64: libhashtable.Int64Factorizer,
111+
np.longlong: libhashtable.Int64Factorizer,
112+
np.int32: libhashtable.Int32Factorizer,
113+
np.int16: libhashtable.Int16Factorizer,
114+
np.int8: libhashtable.Int8Factorizer,
115+
np.uint64: libhashtable.UInt64Factorizer,
116+
np.uint32: libhashtable.UInt32Factorizer,
117+
np.uint16: libhashtable.UInt16Factorizer,
118+
np.uint8: libhashtable.UInt8Factorizer,
119+
np.bool_: libhashtable.UInt8Factorizer,
120+
np.float64: libhashtable.Float64Factorizer,
121+
np.float32: libhashtable.Float32Factorizer,
123122
np.complex64: libhashtable.Complex64Factorizer,
124123
np.complex128: libhashtable.Complex128Factorizer,
125124
np.object_: libhashtable.ObjectFactorizer,

0 commit comments

Comments
 (0)