Skip to content

Commit 79ac0c9

Browse files
committed
BUG: fixes #12405 by eliding values index by NaT in MPLPlot._get_xticks
1 parent 66d8c41 commit 79ac0c9

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
@@ -1342,6 +1342,7 @@ def _get_xticks(self, convert_period=False):
13421342
"""
13431343
x = index._mpl_repr()
13441344
elif is_datetype:
1345+
self.data = self.data[notnull(self.data.index)]
13451346
self.data = self.data.sort_index()
13461347
x = self.data.index._mpl_repr()
13471348
else:

0 commit comments

Comments
 (0)