python polars: new column based on condition/comparison of two existing columns
I am trying to create a new column in Polars data frame based on comparison of two existing columns: import polars as pl data = {"a": [2, 30], "b": [20, 3]} df = pl.DataFrame(data) df Out[4]: shape: (2, 2) ┌─────┬─────┐ │ a ┆ b │ │ — ┆ — │ │ i64 ┆ i64 │… Read More python polars: new column based on condition/comparison of two existing columns