()
| 2439 | |
| 2440 | |
| 2441 | def 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 | |
| 2456 | def test_scalar_to_series(): |
nothing calls this directly
no test coverage detected