File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 42
42
ExtensionArray ,
43
43
FloatingArray ,
44
44
IntegerArray ,
45
- PandasArray ,
46
45
)
47
46
from pandas .core .arrays .floating import FloatingDtype
48
47
from pandas .core .arrays .integer import IntegerDtype
48
+ from pandas .core .arrays .numpy_ import PandasArray
49
49
from pandas .core .construction import extract_array
50
50
from pandas .core .indexers import check_array_indexer
51
51
from pandas .core .missing import isna
Original file line number Diff line number Diff line change 148
148
validate_tz_from_dtype ,
149
149
)
150
150
from pandas .core .arrays .sparse import SparseDtype
151
+ from pandas .core .arrays .string_ import StringArray
151
152
from pandas .core .base import (
152
153
IndexOpsMixin ,
153
154
PandasObject ,
@@ -5033,7 +5034,11 @@ def _get_engine_target(self) -> ArrayLike:
5033
5034
Get the ndarray or ExtensionArray that we can pass to the IndexEngine
5034
5035
constructor.
5035
5036
"""
5036
- return self ._values
5037
+ vals = self ._values
5038
+ if isinstance (vals , StringArray ):
5039
+ # GH#45652 much more performant than ExtensionEngine
5040
+ return vals ._ndarray
5041
+ return vals
5037
5042
5038
5043
def _from_join_target (self , result : np .ndarray ) -> ArrayLike :
5039
5044
"""
You can’t perform that action at this time.
0 commit comments