Open-source tools and learning paths · Python-first · Spanish & English

← The catalogue

Nº23 · Analysis

Polars

DataFrames in Rust: fast, parallel and with lazy evaluation.

Library / framework—Intro—Data Engineer·Data Scientist—python

What is it?

Polars is a DataFrame library written in Rust with a Python API. It uses all your CPU cores and a lazy evaluation engine that optimizes the query before running it — built to be fast and memory-efficient by design.

What is it for?

  • Processing large datasets (the ones pandas struggles with) on a single machine.
  • Chaining declarative transformations that Polars optimizes as a whole.
  • Working with streaming data that doesn't fully fit in RAM (lazy mode).

When to use it / when not

Use it when pandas falls short on speed or memory, or when you want a modern, expressive API with good performance out of the box.

Think twice if you depend on libraries that expect a pandas DataFrame, or if your dataset is small and your team's familiarity with pandas matters more than speed.

Get started in 1 minute

pip install polars
import polars as pl

# Lazy: Polars optimizes the whole plan before reading data
summary = (
    pl.scan_csv("sales.csv")
      .group_by("country")
      .agg(pl.col("amount").sum().alias("total"))
      .sort("total", descending=True)
      .collect()
)

print(summary)

Quick trivia — test what you just read.

How much do you know about Polars?

Official documentation

The source of truth lives there. Here we orient you; the depth is up to you.

Open official docs ↗

What to learn next

See also

KioskoAI mailbox

Anything missing from the Polars guide?

This decides what gets written next. If it only half-helped, say so.

Type of feedback
0/2000

No spam. Email is optional and only used to reply to you.

Nº23 · Updated 2026-06-08