Skip to content

Commit

Permalink
implemented fix for GH issue pandas-dev#16953
Browse files Browse the repository at this point in the history
  • Loading branch information
s-weigand committed Sep 4, 2017
1 parent 062f6f1 commit 84a8cc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pandas/plotting/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,9 @@ def _compute_plot_data(self):
label = 'None'
data = data.to_frame(name=label)

numeric_data = data._convert(datetime=True)._get_numeric_data()
# fix of issue #16953
data = data.select_dtypes(include=[np.number, "datetime", "timedelta"])
numeric_data = data._convert(datetime=True)

try:
is_empty = numeric_data.empty
Expand Down

0 comments on commit 84a8cc2

Please sign in to comment.