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

Method add_prefix

dask/dataframe/dask_expr/_collection.py:3709–3714  ·  view source on GitHub ↗
(self, prefix, axis=None)

Source from the content-addressed store, hash-verified

3707
3708 @derived_from(pd.DataFrame)
3709 def add_prefix(self, prefix, axis=None):
3710 if axis in (None, 1, "columns"):
3711 return new_collection(expr.AddPrefix(self, prefix))
3712 if axis in (0, "index"):
3713 raise NotImplementedError(f"add_prefix({axis=}) is not implemented in Dask")
3714 raise ValueError("axis must be either 0, 1, 'index', 'columns', or None")
3715
3716 @derived_from(pd.DataFrame)
3717 def add_suffix(self, suffix, axis=None):

Callers 2

Calls 1

new_collectionFunction · 0.90

Tested by 2