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

Method map

dask/dataframe/dask_expr/_collection.py:3114–3123  ·  view source on GitHub ↗
(self, func, na_action=None, meta=None)

Source from the content-addressed store, hash-verified

3112 return list(o)
3113
3114 def map(self, func, na_action=None, meta=None):
3115 if not PANDAS_GE_210:
3116 raise NotImplementedError(
3117 f"DataFrame.map requires pandas>=2.1.0, but pandas={PANDAS_VERSION} is "
3118 "installed."
3119 )
3120 if meta is None:
3121 meta = expr.emulate(M.map, self, func, na_action=na_action, udf=True)
3122 warnings.warn(meta_warning(meta, method="map"))
3123 return new_collection(expr.Map(self, arg=func, na_action=na_action, meta=meta))
3124
3125 @derived_from(pd.DataFrame)
3126 def nlargest(self, n=5, columns=None, split_every=None):

Callers 1

test_dataframe_mapFunction · 0.95

Calls 2

meta_warningFunction · 0.90
new_collectionFunction · 0.90

Tested by 1

test_dataframe_mapFunction · 0.76