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

Method map

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

Source from the content-addressed store, hash-verified

4248
4249 @derived_from(pd.Series)
4250 def map(self, arg, na_action=None, meta=None):
4251 if isinstance(arg, Series):
4252 if not expr.are_co_aligned(self.expr, arg.expr):
4253 if meta is None:
4254 warnings.warn(meta_warning(meta, method="map"))
4255 return new_collection(
4256 expr.MapAlign(self, arg, na_action=na_action, meta=meta)
4257 )
4258 if meta is None:
4259 meta = expr.emulate(M.map, self, arg, na_action=na_action, udf=True)
4260 warnings.warn(meta_warning(meta, method="map"))
4261 return new_collection(expr.Map(self, arg=arg, na_action=na_action, meta=meta))
4262
4263 @derived_from(pd.Series)
4264 def clip(self, lower=None, upper=None, axis=None, **kwargs):

Callers 3

test_series_mapFunction · 0.95
test_series_map_metaFunction · 0.95

Calls 2

meta_warningFunction · 0.90
new_collectionFunction · 0.90

Tested by 3

test_series_mapFunction · 0.76
test_series_map_metaFunction · 0.76