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

Function test_abs_errors

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

Source from the content-addressed store, hash-verified

796
797
798def test_abs_errors():
799 df = pd.DataFrame(
800 {
801 "A": [1, -2, 3, -4, 5],
802 "C": ["a", "b", "c", "d", "e"],
803 }
804 )
805 ddf = from_pandas(df, npartitions=2)
806 pytest.raises((TypeError, NotImplementedError, ValueError), lambda: ddf.C.abs())
807 pytest.raises((TypeError, NotImplementedError), lambda: ddf.abs())
808
809
810def test_to_datetime_timezone():

Callers

nothing calls this directly

Calls 2

from_pandasFunction · 0.90
absMethod · 0.45

Tested by

no test coverage detected