(constructor)
| 399 | |
| 400 | |
| 401 | def 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 | |
| 413 | def test_non_matching_index(): |
nothing calls this directly
no test coverage detected