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

Function test_isnull

dask/array/tests/test_routines.py:1674–1679  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1672
1673
1674def test_isnull():
1675 x = np.array([1, np.nan])
1676 a = da.from_array(x, chunks=(2,))
1677 with contextlib.suppress(ImportError):
1678 assert_eq(da.isnull(a), np.isnan(x))
1679 assert_eq(da.notnull(a), ~(np.isnan(x)))
1680
1681
1682def test_isnull_result_is_an_array():

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
notnullMethod · 0.80
isnullMethod · 0.45

Tested by

no test coverage detected