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

Function test_del

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

Source from the content-addressed store, hash-verified

4133
4134
4135def 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])

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
copyMethod · 0.45

Tested by

no test coverage detected