Skip to content

Commit 84a8cc2

Browse files
committed
implemented fix for GH issue pandas-dev#16953
1 parent 062f6f1 commit 84a8cc2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/plotting/_core.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,9 @@ def _compute_plot_data(self):
342342
label = 'None'
343343
data = data.to_frame(name=label)
344344

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

347349
try:
348350
is_empty = numeric_data.empty

0 commit comments

Comments
 (0)