Skip to content

Commit c6ab2f9

Browse files
bang128topper-123
authored andcommitted
Update is_object
1 parent 02721c5 commit c6ab2f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexes/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1316,7 +1316,7 @@ def _format_native_types(
13161316
return formatter.get_result_as_array()
13171317

13181318
mask = isna(self)
1319-
if not self.is_object() and not quoting:
1319+
if not is_object_dtype(self) and not quoting:
13201320
values = np.asarray(self).astype(str)
13211321
else:
13221322
values = np.array(self, dtype=object, copy=True)

0 commit comments

Comments
 (0)