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

Function myfunc

dask/dataframe/dask_expr/tests/test_collection.py:159–160  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

157 df = from_pandas(pdf, npartitions=2)
158
159 def myfunc(x):
160 return x.assign(zz=x["z"] + 1)
161
162 df = df.map_partitions(myfunc, meta=myfunc(pdf), required_columns=required_columns)
163 if required_columns and "foo" in required_columns:

Callers 1

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected