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

Function test_pipe

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

Source from the content-addressed store, hash-verified

2679
2680
2681def test_pipe():
2682 df = pd.DataFrame({"x": range(50), "y": range(50, 100)})
2683 ddf = dd.from_pandas(df, npartitions=4)
2684
2685 def f(x, y, z=0):
2686 return x + y + z
2687
2688 assert_eq(ddf.pipe(f, 1, z=2), f(ddf, 1, z=2))
2689 assert_eq(ddf.x.pipe(f, 1, z=2), f(ddf.x, 1, z=2))
2690
2691
2692def 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