Skip to content

Commit 46f9fe7

Browse files
fixup
1 parent 33f7b5c commit 46f9fe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexes/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6909,7 +6909,7 @@ def insert(self, loc: int, item) -> Index:
69096909

69106910
arr = self._values
69116911

6912-
if using_string_dtype and len(self) == 0 and self.dtype == np.object_:
6912+
if using_string_dtype() and len(self) == 0 and self.dtype == np.object_:
69136913
# special case: if we are an empty object-dtype Index, also
69146914
# take into account the inserted item for the resulting dtype
69156915
# (https://github.com/pandas-dev/pandas/pull/60797)

0 commit comments

Comments
 (0)