Skip to content

Commit 7f88d82

Browse files
committed
fix backward compatibility for str check
1 parent 7b20246 commit 7f88d82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/plotting/_core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ def _get_xticks(self, convert_period=False):
573573
self.data = self.data[notna(self.data.index)]
574574
self.data = self.data.sort_index()
575575
x = self.data.index._mpl_repr()
576-
elif all(isinstance(val, str) for val in index):
576+
elif all(isinstance(val, string_types) for val in index):
577577
x = index._mpl_repr()
578578
else:
579579
self._need_to_set_index = True

0 commit comments

Comments
 (0)