Skip to content

Commit 019c7cc

Browse files
committed
Fixup
1 parent 3195a84 commit 019c7cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/core/indexes/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6623,6 +6623,7 @@ def _maybe_cast_listlike_indexer(self, target) -> Index:
66236623
not hasattr(target, "dtype")
66246624
and isinstance(self.dtype, StringDtype)
66256625
and self.dtype.na_value is np.nan
6626+
and using_string_dtype()
66266627
):
66276628
# Fill missing values to ensure consistent missing value representation
66286629
target_index = target_index.fillna(np.nan)

0 commit comments

Comments
 (0)