MCPcopy Index your code
hub / github.com/plotly/plotly.py / to_str

Function to_str

tests/test_io/test_to_from_plotly_json.py:187–193  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

185 result = pio.to_json_plotly(value, engine=engine)
186
187 def to_str(v):
188 try:
189 v = v.isoformat(sep="T")
190 except (TypeError, AttributeError):
191 pass
192
193 return str(v)
194
195 if isinstance(datetime_array, list):
196 dt_values = [to_str(d) for d in datetime_array]

Callers 1

test_datetime_arraysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected