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

All expressions, grouping and joins commands · Polars 2 cheatsheet

Was this page helpful?