Skip to content

Commit a59ee30

Browse files
cleanup
1 parent 88cc28f commit a59ee30

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pandas/core/indexes/base.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6221,10 +6221,6 @@ def _maybe_downcast_for_indexing(self, other: Index) -> tuple[Index, Index]:
62216221
# let's instead try with a straight Index
62226222
self = Index(self._values)
62236223

6224-
# elif self.dtype == "string" and other.dtype == "object":
6225-
# if lib.is_string_array(other._values, skipna=True): # type: ignore[arg-type]
6226-
# return self, other.astype(self.dtype)
6227-
62286224
if not is_object_dtype(self.dtype) and is_object_dtype(other.dtype):
62296225
# Reverse op so we dont need to re-implement on the subclasses
62306226
other, self = other._maybe_downcast_for_indexing(self)

0 commit comments

Comments
 (0)