We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 232db13 commit b6c4e4aCopy full SHA for b6c4e4a
pandas/core/indexes/base.py
@@ -5155,6 +5155,9 @@ def _get_engine_target(self) -> ArrayLike:
5155
if isinstance(vals, StringArray):
5156
# GH#45652 much more performant than ExtensionEngine
5157
return vals._ndarray
5158
+ if type(self) is Index and isinstance(self._values, ExtensionArray):
5159
+ # TODO(ExtensionIndex): remove special-case, just use self._values
5160
+ return self._values.astype(object)
5161
return vals
5162
5163
def _from_join_target(self, result: np.ndarray) -> ArrayLike:
0 commit comments