Skip to content

Commit 022da18

Browse files
bang128topper-123
authored andcommitted
Update is_object
1 parent d1ba4c6 commit 022da18

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
@@ -1348,7 +1348,7 @@ def _format_native_types(
13481348
return formatter.get_result_as_array()
13491349

13501350
mask = isna(self)
1351-
if not self.is_object() and not quoting:
1351+
if not is_object_dtype(self) and not quoting:
13521352
values = np.asarray(self).astype(str)
13531353
else:
13541354
values = np.array(self, dtype=object, copy=True)

0 commit comments

Comments
 (0)