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

Function test_dataframe_map_raises

dask/dataframe/tests/test_map.py:133–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131
132@pytest.mark.skipif(PANDAS_GE_210, reason="Added in pandas 2.1.0")
133def test_dataframe_map_raises():
134 df = pd.DataFrame({"x": [1, 2, 3, 4], "y": [10, 20, 30, 40]})
135 ddf = dd.from_pandas(df, npartitions=2)
136 with pytest.raises(NotImplementedError, match="DataFrame.map requires pandas"):
137 ddf.map(lambda x: x + 1)
138
139
140def test_map_index():

Callers

nothing calls this directly

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected