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

Function test_dropna_simplify

dask/dataframe/dask_expr/tests/test_collection.py:1825–1832  ·  view source on GitHub ↗
(pdf, subset)

Source from the content-addressed store, hash-verified

1823
1824@pytest.mark.parametrize("subset", ["x", ["x"]])
1825def test_dropna_simplify(pdf, subset):
1826 pdf["z"] = 1
1827 df = from_pandas(pdf)
1828 q = df.dropna(subset=subset)["y"]
1829 result = q.simplify()
1830 expected = df[["x", "y"]].simplify().dropna(subset=subset)["y"]
1831 assert result._name == expected._name
1832 assert_eq(q, pdf.dropna(subset=subset)["y"])
1833
1834
1835def test_dir(df):

Callers

nothing calls this directly

Calls 4

from_pandasFunction · 0.90
assert_eqFunction · 0.90
dropnaMethod · 0.45
simplifyMethod · 0.45

Tested by

no test coverage detected