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