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

Method map

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

Source from the content-addressed store, hash-verified

3142 return list(o)
3143
3144 def map(self, func, na_action=None, meta=None):
3145 if not PANDAS_GE_210:
3146 raise NotImplementedError(
3147 f"DataFrame.map requires pandas>=2.1.0, but pandas={PANDAS_VERSION} is "
3148 "installed."
3149 )
3150 if meta is None:
3151 meta = expr.emulate(M.map, self, func, na_action=na_action, udf=True)
3152 warnings.warn(meta_warning(meta, method="map"))
3153 return new_collection(expr.Map(self, arg=func, na_action=na_action, meta=meta))
3154
3155 @derived_from(pd.DataFrame)
3156 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