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

Function _wrap_expr_api

dask/dataframe/dask_expr/_collection.py:168–177  ·  view source on GitHub ↗
(*args, wrap_api=None, **kwargs)

Source from the content-addressed store, hash-verified

166
167
168def _wrap_expr_api(*args, wrap_api=None, **kwargs):
169 # Use Expr API, but convert to/from Expr objects
170 assert wrap_api is not None
171 result = wrap_api(
172 *[arg.expr if isinstance(arg, FrameBase) else arg for arg in args],
173 **kwargs,
174 )
175 if isinstance(result, expr.Expr):
176 return new_collection(result)
177 return result
178
179
180def _wrap_expr_op(self, other, op=None):

Callers

nothing calls this directly

Calls 1

new_collectionFunction · 0.90

Tested by

no test coverage detected