MCPcopy
hub / github.com/dask/dask / test_pop

Function test_pop

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

Source from the content-addressed store, hash-verified

4810
4811
4812def test_pop():
4813 df = pd.DataFrame({"x": range(10), "y": range(10)})
4814
4815 ddf = dd.from_pandas(df, npartitions=2)
4816
4817 s = ddf.pop("y")
4818 assert s.name == "y"
4819 assert ddf.columns == ["x"]
4820 assert_eq(ddf, df[["x"]])
4821
4822
4823@pytest.mark.parametrize("dropna", [True, False])

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
popMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…