()
| 392 | |
| 393 | |
| 394 | def test_pipe(): |
| 395 | df = pd.DataFrame({"x": range(50), "y": range(50, 100)}) |
| 396 | ddf = from_pandas(df, npartitions=4) |
| 397 | |
| 398 | def f(x, y, z=0): |
| 399 | return x + y + z |
| 400 | |
| 401 | assert_eq(ddf.pipe(f, 1, z=2), f(ddf, 1, z=2)) |
| 402 | assert_eq(ddf.x.pipe(f, 1, z=2), f(ddf.x, 1, z=2)) |
| 403 | |
| 404 | |
| 405 | def test_mode(): |
nothing calls this directly
no test coverage detected