Polars 2 · Basics

Sort rows

Sort by one or more columns.

df.sort("age", descending=True)

Official Polars 2 documentation

More basics commands

All basics commands · Polars 2 cheatsheet

Was this page helpful?