We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
datetime_as_string
1 parent 84ba4b5 commit 340aed3Copy full SHA for 340aed3
packages/python/plotly/_plotly_utils/utils.py
@@ -186,7 +186,7 @@ def encode_as_numpy(obj):
186
187
if obj is numpy.ma.core.masked:
188
return float("nan")
189
- elif isinstance(obj, numpy.ndarray):
+ elif isinstance(obj, numpy.ndarray) and obj.dtype.kind == "M":
190
try:
191
return numpy.datetime_as_string(obj).tolist()
192
except TypeError:
0 commit comments