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

Function test_isnull

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

Source from the content-addressed store, hash-verified

2389
2390
2391def test_isnull():
2392 pdf = pd.DataFrame(
2393 {
2394 "A": range(10),
2395 "B": [None] * 10,
2396 "C": [1] * 4 + [None] * 4 + [2] * 2,
2397 }
2398 )
2399 df = from_pandas(pdf, npartitions=2)
2400 assert_eq(df.notnull(), pdf.notnull())
2401 assert_eq(df.isnull(), pdf.isnull())
2402 for c in pdf.columns:
2403 assert_eq(df[c].isnull(), pdf[c].isnull())
2404
2405
2406def 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