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

Function test_isnull

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

Source from the content-addressed store, hash-verified

2439
2440
2441def test_isnull():
2442 pdf = pd.DataFrame(
2443 {
2444 "A": range(10),
2445 "B": [None] * 10,
2446 "C": [1] * 4 + [None] * 4 + [2] * 2,
2447 }
2448 )
2449 df = from_pandas(pdf, npartitions=2)
2450 assert_eq(df.notnull(), pdf.notnull())
2451 assert_eq(df.isnull(), pdf.isnull())
2452 for c in pdf.columns:
2453 assert_eq(df[c].isnull(), pdf[c].isnull())
2454
2455
2456def 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