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

Method map

dask/dataframe/dask_expr/_collection.py:4205–4216  ·  view source on GitHub ↗
(self, arg, na_action=None, meta=None)

Source from the content-addressed store, hash-verified

4203
4204 @derived_from(pd.Series)
4205 def map(self, arg, na_action=None, meta=None):
4206 if isinstance(arg, Series):
4207 if not expr.are_co_aligned(self.expr, arg.expr):
4208 if meta is None:
4209 warnings.warn(meta_warning(meta, method="map"))
4210 return new_collection(
4211 expr.MapAlign(self, arg, op=None, na_action=na_action, meta=meta)
4212 )
4213 if meta is None:
4214 meta = expr.emulate(M.map, self, arg, na_action=na_action, udf=True)
4215 warnings.warn(meta_warning(meta, method="map"))
4216 return new_collection(expr.Map(self, arg=arg, na_action=na_action, meta=meta))
4217
4218 @derived_from(pd.Series)
4219 def clip(self, lower=None, upper=None, axis=None, **kwargs):

Callers 2

test_series_map_metaFunction · 0.95
test_series_mapFunction · 0.95

Calls 2

meta_warningFunction · 0.90
new_collectionFunction · 0.90

Tested by 2

test_series_map_metaFunction · 0.76
test_series_mapFunction · 0.76