Skip to content

Commit dd32531

Browse files
WillAydjorisvandenbossche
authored andcommitted
Backport fixes
1 parent c75a340 commit dd32531

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/indexes/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from pandas._config import (
2424
get_option,
2525
using_copy_on_write,
26-
using_pyarrow_string_dtype,
26+
using_string_dtype,
2727
)
2828

2929
from pandas._libs import (
@@ -7015,7 +7015,7 @@ def insert(self, loc: int, item) -> Index:
70157015

70167016
out = Index._with_infer(new_values, name=self.name)
70177017
if (
7018-
using_pyarrow_string_dtype()
7018+
using_string_dtype()
70197019
and is_string_dtype(out.dtype)
70207020
and new_values.dtype == object
70217021
):

0 commit comments

Comments
 (0)