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 fcba8a7 commit 7d5023bCopy full SHA for 7d5023b
packages/python/plotly/_plotly_utils/utils.py
@@ -184,7 +184,7 @@ def encode_as_numpy(obj):
184
185
if obj is numpy.ma.core.masked:
186
return float("nan")
187
- elif isinstance(obj, numpy.ndarray):
+ elif isinstance(obj, numpy.ndarray) and obj.dtype.kind == "M":
188
try:
189
return numpy.datetime_as_string(obj).tolist()
190
except TypeError:
0 commit comments