Skip to content

Commit

Permalink
BUG: fixes pandas-dev#12405 by eliding values index by NaT in MPLPlot…
Browse files Browse the repository at this point in the history
…._get_xticks
  • Loading branch information
tsdlovell committed Jan 28, 2017
1 parent 66d8c41 commit 79ac0c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pandas/tools/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,7 @@ def _get_xticks(self, convert_period=False):
"""
x = index._mpl_repr()
elif is_datetype:
self.data = self.data[notnull(self.data.index)]
self.data = self.data.sort_index()
x = self.data.index._mpl_repr()
else:
Expand Down

0 comments on commit 79ac0c9

Please sign in to comment.