polars.DataFrame.with_columns

DataFrame.with_columns(exprs: Union[polars.internals.expr.Expr, List[polars.internals.expr.Expr]]) polars.internals.frame.DF

Add or overwrite multiple columns in a DataFrame.

Parameters
exprs

List of Expressions that evaluate to columns.