()
| 131 | |
| 132 | @pytest.mark.skipif(PANDAS_GE_210, reason="Added in pandas 2.1.0") |
| 133 | def 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 | |
| 140 | def test_map_index(): |