MCPcopy Index your code
hub / github.com/dask/dask / FunctionMap

Class FunctionMap

dask/dataframe/dask_expr/_accessor.py:101–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99
100
101class FunctionMap(Elemwise):
102 _parameters = ["frame", "accessor", "attr", "args", "kwargs"]
103
104 @functools.cached_property
105 def _meta(self):
106 args = [
107 meta_nonempty(op._meta) if isinstance(op, Expr) else op for op in self._args
108 ]
109 return make_meta(self.operation(*args, **self._kwargs))
110
111 @staticmethod
112 def operation(obj, accessor, attr, args, kwargs):
113 out = getattr(getattr(obj, accessor, obj), attr)(*args, **kwargs)
114 return maybe_wrap_pandas(obj, out)
115
116
117class FunctionMapIndex(FunctionMap):

Callers 1

_function_mapMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…