()
| 2942 | |
| 2943 | @pytest.mark.skipif(PANDAS_GE_210, reason="Available at 2.1") |
| 2944 | def 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 | |
| 2951 | def test_add_prefix(): |