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

Function test_abs_errors

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

Source from the content-addressed store, hash-verified

828
829
830def test_abs_errors():
831 df = pd.DataFrame(
832 {
833 "A": [1, -2, 3, -4, 5],
834 "C": ["a", "b", "c", "d", "e"],
835 }
836 )
837 ddf = from_pandas(df, npartitions=2)
838 pytest.raises((TypeError, NotImplementedError, ValueError), lambda: ddf.C.abs())
839 pytest.raises((TypeError, NotImplementedError), lambda: ddf.abs())
840
841
842def test_to_datetime_timezone():

Callers

nothing calls this directly

Calls 2

from_pandasFunction · 0.90
absMethod · 0.45

Tested by

no test coverage detected