MCPcopy Create free account
hub / github.com/dask/dask / test_pipe

Function test_pipe

dask/dataframe/tests/test_dataframe.py:2683–2691  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2681
2682
2683def test_pipe():
2684 df = pd.DataFrame({"x": range(50), "y": range(50, 100)})
2685 ddf = dd.from_pandas(df, npartitions=4)
2686
2687 def f(x, y, z=0):
2688 return x + y + z
2689
2690 assert_eq(ddf.pipe(f, 1, z=2), f(ddf, 1, z=2))
2691 assert_eq(ddf.x.pipe(f, 1, z=2), f(ddf.x, 1, z=2))
2692
2693
2694def test_gh_517():

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
pipeMethod · 0.80
fFunction · 0.70

Tested by

no test coverage detected