Polars 2 · Basics

Select columns

Choose columns by name or expression.

df.select("name", "age")
df.select(pl.col("age") * 2)

Official Polars 2 documentation

More basics commands

All basics commands · Polars 2 cheatsheet

Was this page helpful?