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

Method map

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

Source from the content-addressed store, hash-verified

4222
4223 @derived_from(pd.Series)
4224 def map(self, arg, na_action=None, meta=None):
4225 if isinstance(arg, Series):
4226 if not expr.are_co_aligned(self.expr, arg.expr):
4227 if meta is None:
4228 warnings.warn(meta_warning(meta, method="map"))
4229 return new_collection(
4230 expr.MapAlign(self, arg, na_action=na_action, meta=meta)
4231 )
4232 if meta is None:
4233 meta = expr.emulate(M.map, self, arg, na_action=na_action, udf=True)
4234 warnings.warn(meta_warning(meta, method="map"))
4235 return new_collection(expr.Map(self, arg=arg, na_action=na_action, meta=meta))
4236
4237 @derived_from(pd.Series)
4238 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