View on GitHub

Polars: the fast DataFrame library

Data engineering lesson ready

Same question, same data. One library reads the whole file, the other reads only what it needs.

The idea

Polars is a DataFrame library written in Rust that uses every CPU core and Apache Arrow memory. Its lazy API builds a query plan first, and an optimizer improves it before anything runs.

Filters get pushed down into the file scan, and only the needed columns are read. On large files, that’s the difference between reading everything and reading a fraction of it.

What the lesson will build

Key ideas

The video

The lesson is ready: code and a line-by-line walkthrough in data-engineering/14-polars/.


All topics · Suggest a topic