Polars 2 · Lazy queries and files

Process data larger than memory

Collect with the streaming engine so data is handled in batches.

pl.scan_csv("huge.csv").group_by("id").len().collect(engine="streaming")

Official Polars 2 documentation

More lazy queries and files commands

All lazy queries and files commands · Polars 2 cheatsheet

Was this page helpful?