polars.map

polars.map(exprs: Union[List[str], List[polars.internals.expr.Expr]], f: Callable[[List[polars.internals.series.Series]], polars.internals.series.Series], return_dtype: Optional[Type[polars.datatypes.DataType]] = None) polars.internals.expr.Expr

Map a custom function over multiple columns/expressions and produce a single Series result.

Parameters
exprs

Input Series to f

f

Function to apply over the input

return_dtype

dtype of the output Series

Returns
Expr