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

Function test_pop

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

Source from the content-addressed store, hash-verified

4824
4825
4826def test_pop():
4827 df = pd.DataFrame({"x": range(10), "y": range(10)})
4828
4829 ddf = dd.from_pandas(df, npartitions=2)
4830
4831 s = ddf.pop("y")
4832 assert s.name == "y"
4833 assert ddf.columns == ["x"]
4834 assert_eq(ddf, df[["x"]])
4835
4836
4837@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