()
| 2401 | |
| 2402 | |
| 2403 | def test_isnull(): |
| 2404 | pdf = pd.DataFrame( |
| 2405 | { |
| 2406 | "A": range(10), |
| 2407 | "B": [None] * 10, |
| 2408 | "C": [1] * 4 + [None] * 4 + [2] * 2, |
| 2409 | } |
| 2410 | ) |
| 2411 | df = from_pandas(pdf, npartitions=2) |
| 2412 | assert_eq(df.notnull(), pdf.notnull()) |
| 2413 | assert_eq(df.isnull(), pdf.isnull()) |
| 2414 | for c in pdf.columns: |
| 2415 | assert_eq(df[c].isnull(), pdf[c].isnull()) |
| 2416 | |
| 2417 | |
| 2418 | def test_scalar_to_series(): |
nothing calls this directly
no test coverage detected