()
| 4133 | |
| 4134 | |
| 4135 | def test_del(): |
| 4136 | df = pd.DataFrame( |
| 4137 | {"x": ["a", "b", "c", "d"], "y": [2, 3, 4, 5]}, |
| 4138 | index=pd.Index([1.0, 2.0, 3.0, 4.0], name="ind"), |
| 4139 | ) |
| 4140 | a = dd.from_pandas(df, 2) |
| 4141 | b = a.copy() |
| 4142 | |
| 4143 | del a["x"] |
| 4144 | assert_eq(b, df) |
| 4145 | |
| 4146 | del df["x"] |
| 4147 | assert_eq(a, df) |
| 4148 | |
| 4149 | |
| 4150 | @pytest.mark.parametrize("index", [True, False]) |