MCPcopy
hub / github.com/dask/dask / test_abs_errors

Function test_abs_errors

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

from_pandasFunction · 0.90
absMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…