MCPcopy Create free account
hub / github.com/plotly/plotly.py / test_timezones

Function test_timezones

tests/test_optional/test_px/test_px_input.py:401–410  ·  view source on GitHub ↗
(constructor)

Source from the content-addressed store, hash-verified

399
400
401def test_timezones(constructor):
402 df = nw.from_native(
403 constructor({"date": ["2015-04-04 19:31:30+0100"], "value": [3]})
404 ).with_columns(nw.col("date").str.to_datetime(format="%Y-%m-%d %H:%M:%S%z"))
405 args = dict(data_frame=df.to_native(), x="date", y="value")
406 out = build_dataframe(args, go.Scatter)
407
408 assert str(out["data_frame"].item(row=0, column="date")) == str(
409 nw.from_native(df).item(row=0, column="date")
410 )
411
412
413def test_non_matching_index():

Callers

nothing calls this directly

Calls 2

build_dataframeFunction · 0.90
constructorFunction · 0.85

Tested by

no test coverage detected