We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bcbef2 commit 8560bc5Copy full SHA for 8560bc5
pandas/core/indexes/base.py
@@ -4884,7 +4884,10 @@ def _can_use_libjoin(self) -> bool:
4884
return (
4885
isinstance(self.dtype, np.dtype)
4886
or isinstance(self._values, (ArrowExtensionArray, BaseMaskedArray))
4887
- or self.dtype == "string[python]"
+ or (
4888
+ isinstance(self.dtype, StringDtype)
4889
+ and self.dtype.storage == "python"
4890
+ )
4891
)
4892
# Exclude index types where the conversion to numpy converts to object dtype,
4893
# which negates the performance benefit of libjoin
0 commit comments