MCPcopy Create free account
hub / github.com/dask/dask / test_to_datetime_timezone

Function test_to_datetime_timezone

dask/dataframe/dask_expr/tests/test_collection.py:842–847  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

840
841
842def test_to_datetime_timezone():
843 pdf = pd.DataFrame({"a": ["2023-04-01 22:12:11.9324171+00:00"]})
844 df = from_pandas(pdf)
845 df["a"] = to_datetime(df.a, format="ISO8601", meta=("a", "datetime64[ns, UTC]"))
846 pdf["a"] = to_datetime(pdf.a, format="ISO8601")
847 assert_eq(df, pdf)
848
849
850def test_to_datetime():

Callers

nothing calls this directly

Calls 3

from_pandasFunction · 0.90
to_datetimeFunction · 0.90
assert_eqFunction · 0.90

Tested by

no test coverage detected