We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94a4c51 commit 70d0f17Copy full SHA for 70d0f17
pandas/core/indexes/range.py
@@ -943,7 +943,7 @@ def symmetric_difference(
943
def _join_empty(
944
self, other: Index, how: JoinHow, sort: bool
945
) -> tuple[Index, npt.NDArray[np.intp] | None, npt.NDArray[np.intp] | None]:
946
- if other.dtype.kind == "i":
+ if not isinstance(other, RangeIndex) and other.dtype.kind == "i":
947
other = self._shallow_copy(other._values, name=other.name)
948
return super()._join_empty(other, how=how, sort=sort)
949
0 commit comments