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

Function test_dataframe_map_raises

dask/dataframe/tests/test_dataframe.py:2944–2948  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2942
2943@pytest.mark.skipif(PANDAS_GE_210, reason="Available at 2.1")
2944def test_dataframe_map_raises():
2945 df = pd.DataFrame({"x": [1, 2, 3, 4], "y": [10, 20, 30, 40]})
2946 ddf = dd.from_pandas(df, npartitions=2)
2947 with pytest.raises(NotImplementedError, match="DataFrame.map requires pandas"):
2948 ddf.map(lambda x: x + 1)
2949
2950
2951def test_add_prefix():

Callers

nothing calls this directly

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected