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

Function test_isnull

dask/dataframe/dask_expr/tests/test_collection.py:2403–2415  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2401
2402
2403def test_isnull():
2404 pdf = pd.DataFrame(
2405 {
2406 "A": range(10),
2407 "B": [None] * 10,
2408 "C": [1] * 4 + [None] * 4 + [2] * 2,
2409 }
2410 )
2411 df = from_pandas(pdf, npartitions=2)
2412 assert_eq(df.notnull(), pdf.notnull())
2413 assert_eq(df.isnull(), pdf.isnull())
2414 for c in pdf.columns:
2415 assert_eq(df[c].isnull(), pdf[c].isnull())
2416
2417
2418def test_scalar_to_series():

Callers

nothing calls this directly

Calls 4

from_pandasFunction · 0.90
assert_eqFunction · 0.90
notnullMethod · 0.80
isnullMethod · 0.45

Tested by

no test coverage detected