()
| 382 | |
| 383 | |
| 384 | def test_pipe(): |
| 385 | df = pd.DataFrame({"x": range(50), "y": range(50, 100)}) |
| 386 | ddf = from_pandas(df, npartitions=4) |
| 387 | |
| 388 | def f(x, y, z=0): |
| 389 | return x + y + z |
| 390 | |
| 391 | assert_eq(ddf.pipe(f, 1, z=2), f(ddf, 1, z=2)) |
| 392 | assert_eq(ddf.x.pipe(f, 1, z=2), f(ddf.x, 1, z=2)) |
| 393 | |
| 394 | |
| 395 | def test_mode(): |
nothing calls this directly
no test coverage detected