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

Function test_pipe

dask/dataframe/dask_expr/tests/test_collection.py:386–394  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

384
385
386def test_pipe():
387 df = pd.DataFrame({"x": range(50), "y": range(50, 100)})
388 ddf = from_pandas(df, npartitions=4)
389
390 def f(x, y, z=0):
391 return x + y + z
392
393 assert_eq(ddf.pipe(f, 1, z=2), f(ddf, 1, z=2))
394 assert_eq(ddf.x.pipe(f, 1, z=2), f(ddf.x, 1, z=2))
395
396
397def test_mode():

Callers

nothing calls this directly

Calls 4

from_pandasFunction · 0.90
assert_eqFunction · 0.90
pipeMethod · 0.80
fFunction · 0.70

Tested by

no test coverage detected