We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3195a84 commit 019c7ccCopy full SHA for 019c7cc
pandas/core/indexes/base.py
@@ -6623,6 +6623,7 @@ def _maybe_cast_listlike_indexer(self, target) -> Index:
6623
not hasattr(target, "dtype")
6624
and isinstance(self.dtype, StringDtype)
6625
and self.dtype.na_value is np.nan
6626
+ and using_string_dtype()
6627
):
6628
# Fill missing values to ensure consistent missing value representation
6629
target_index = target_index.fillna(np.nan)
0 commit comments