modin.pandas.DataFrame.transform¶
- DataFrame.transform(func, axis=0, *args, **kwargs) Self[source]¶
Call
funcon self producing a Snowpark pandas DataFrame with the same axis shape as self.- Parameters:
func (function, str, list-like or dict-like) –
Function to use for transforming the data. If a function, must either work when passed a DataFrame or when passed to DataFrame.apply. If func is both list-like and dict-like, dict-like behavior takes precedence.
Snowpark pandas currently only supports callable arguments, and does not yet support string, dict-like, or list-like arguments.
axis ({0 or 'index', 1 or 'columns'}, default 0) – If 0 or ‘index’: apply function to each column. If 1 or ‘columns’: apply function to each row.
*args – Positional arguments to pass to func.
**kwargs – Keyword arguments to pass to func.
Examples
Increment every value in DataFrame by 1.
Apply a numpy ufunc to every value in the DataFrame.