Polars 2 · Lazy queries and files

Scan a file lazily

Build a query without loading the file. Polars optimizes it and reads only what it needs.

lazy = pl.scan_csv("big.csv")

Official Polars 2 documentation

More lazy queries and files commands

All lazy queries and files commands · Polars 2 cheatsheet

Was this page helpful?