Skip to content

Commit 5a3ec26

Browse files
committed
BUG: fixes #12405 by eliding values index by NaT in MPLPlot._get_xticks
1 parent 7f5a45c commit 5a3ec26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/tools/plotting.py

+1
Original file line numberDiff line numberDiff line change
@@ -1325,6 +1325,7 @@ def _get_xticks(self, convert_period=False):
13251325
"""
13261326
x = index._mpl_repr()
13271327
elif is_datetype:
1328+
self.data = self.data[notnull(self.data.index)]
13281329
self.data = self.data.sort_index()
13291330
x = self.data.index._mpl_repr()
13301331
else:

0 commit comments

Comments
 (0)