Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Map a Function to Multiple Columns in Polars in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

shape: (6, 4) ┌─────────────────┬──────────────────┬────────────────┬──────────────────┐ │ column integers ┆ column float64 A ┆ column options ┆ column float64 B │ │ --- ┆ --- ┆ --- ┆ --- │ │ i32 ┆ f64 ┆ i32 ┆ f64 │ ╞═════════════════╪══════════════════╪════════════════╪══════════════════╡ │ 1 ┆ 23.654 ┆ 28 ┆ 23.6499 │ │ 2 ┆ 0.319 ┆ 300 ┆ 0.399 │ │ 3 ┆ 10.0049 ┆ null ┆ 10.0061 │ │ 4 ┆ 89.01999 ┆ 2 ┆ 89.0105 │ │ 5 ┆ -3.41501 ┆ -30 ┆ -3.4331 │ │ 6 ┆ 52.0766 ┆ null ┆ 52.099999 │ └─────────────────┴──────────────────┴────────────────┴──────────────────┘
["column float64 A", "column float64 B"]