« * K @pola.rs

Polars @pola.rs

2026-08-20 15:01 UTC

You can turn a column into labeled buckets. With if/elif/else logic takes one chained expression: pl.when().then().otherwise(). Conditions are checked top to bottom, exactly like Python's if/elif/else. Chain as many as you need, and every branch runs vectorized in Rust rather than row by row.

1 picture (not shown on this phone)

8 likes, 0 reposts, 0 replies

3 Next post4 More from @pola.rsBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup