Polars 2 · Expressions, grouping and joins
Handle missing values
Replace nulls, or drop rows that contain them.
df.with_columns(pl.col("age").fill_null(0))
df.drop_nulls()
Official Polars 2 documentation
More expressions, grouping and joins commands
- Group and aggregate
- Conditional columns
- Join two DataFrames
- Work with strings
- Work with dates
- Window functions
All expressions, grouping and joins commands · Polars 2 cheatsheet