()
| 2389 | |
| 2390 | |
| 2391 | def 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 | |
| 2406 | def test_scalar_to_series(): |
nothing calls this directly
no test coverage detected