Polars

Blazingly fast multi-threaded DataFrame library built in Rust with Python, Node.js, and R bindings

Library
PyPI
v1.43.2
39,385stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
92/100Excellent
Development Activity100
Maintenance100
Community68
Maturity60
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
84/100Excellent
Architecture92
Code Quality90
Innovation88
Learning Curve65

Polars is a DataFrame library whose query engine is written entirely in Rust and exposed to Python (and Node.js, R) through native bindings, giving pandas-scale ergonomics with multi-threaded, vectorized execution and a columnar Apache Arrow memory model. It offers both an eager API for immediate execution and a lazy API that builds a query plan, optimizes it (predicate/projection pushdown, common subexpression elimination), and executes it in parallel — including out-of-core streaming for datasets larger than RAM. Its expression-based syntax (pl.col(...)) lets the same code run efficiently whether the data is a few rows or hundreds of gigabytes.

What You Get

  • Eager (pl.DataFrame) and lazy (pl.LazyFrame) APIs sharing one consistent expression syntax built around pl.col()
  • A query optimizer that applies predicate pushdown, projection pushdown, and common subexpression elimination before executing a lazy query
  • Out-of-core streaming execution for datasets that don’t fit in memory
  • Native readers/writers for CSV, Parquet, JSON, Arrow IPC, Delta Lake, and database connections, with automatic schema inference
  • Zero-copy interop with Apache Arrow, NumPy, and pandas for mixed pipelines

Common Use Cases

  • Replacing pandas in ETL and data-cleaning pipelines that are I/O- or CPU-bound and would benefit from multi-core execution
  • Processing datasets larger than available RAM using the lazy streaming engine instead of chunking manually
  • Feature engineering pipelines for ML where query-plan optimization reduces redundant computation across chained transformations
  • Interactive data analysis in notebooks where fast groupby/join/window operations matter for iteration speed

Under The Hood

Architecture: the repository is a Cargo workspace under crates/ (polars-core, polars-lazy, polars-io, polars-arrow, polars-expr, polars-compute, and more) implementing the actual columnar engine and lazy query optimizer in Rust, with a separate py-polars/ crate using PyO3 to expose that engine as the polars Python package — the Python layer is a thin binding over the same core used by the Rust, Node.js, and R distributions. Tech Stack: Rust for the engine (Cargo workspace, Cargo.toml/Cargo.lock at the root), Apache Arrow as the in-memory columnar format, PyO3/maturin for the Python extension build, with the Python package requiring Python 3.10+ and declaring polars version 1.43.0 in py-polars/pyproject.toml. Code Quality: extremely well-tested, with 455 Python test files under py-polars/tests/ covering the DataFrame/LazyFrame API surface plus extensive Rust unit tests in each crate; CI enforces rustfmt/clippy (per rustfmt.toml/clippy.toml) and dependency auditing via deny.toml. API Design: the expression API (pl.col("x").filter(...).sum()) is designed to be identical whether called eagerly or lazily, which minimizes the learning curve for pandas users switching over, though the strict typing and different null-handling semantics (Arrow-style nulls vs. NaN) require some relearning; the lazy/eager duality is powerful but does add a concept newcomers must learn before choosing the right one for a workload.

Used by 9 apps in this directory

Python
90%
Apache 2.0

Apache Airflow

Data Engineering

46,530

Define, schedule, and monitor complex data workflows as Python code — with a powerful UI, 80+ provider integrations, and battle-tested scalability across thousands of production deployments.

View details
96
Repo Health
89
Technical
66
Dependency
Built with
Python90%
Updated today
Python
88%
Apache 2.0

ART

AI Development

10,603

Give your LLM agents on-the-job training—ART lets you apply GRPO reinforcement learning to any multi-step agentic workflow with minimal code changes.

View details
85
Repo Health
82
Technical
72
Dependency
Built with
Python88%
Cuda10%
Updated today
Rust
95%
Other

Databend

Databases · Data Engineering

9,414

Open-source enterprise data warehouse unifying analytics, vector search, full-text search, and AI agent orchestration in a single Rust-built engine on S3.

View details
91
Repo Health
84
Technical
79
Dependency
Built with
Rust95%
Updated today
Python
64%
MIT

Flowfile

Data Engineering

341

Visual ETL that compiles to Polars — build pipelines on a canvas, export as standalone Python, and run anywhere without platform lock-in.

View details
83
Repo Health
81
Technical
66
Dependency
Built with
Python64%
Vue19%
TypeScript16%
Updated today
Rust
36%
Apache 2.0

LanceDB

Databases · AI Development

11,190

Open-source, embedded vector database built on the Lance columnar format for fast multimodal search across billions of vectors, backed by Y Combinator (W23).

View details
90
Repo Health
86
Technical
72
Dependency
Built with
Rust36%
HTML30%
Python26%
Updated today
Python
84%
MIT

LiteLLM

AI Development · Developer Tools

56,720

Open source AI gateway and Python SDK that gives you one OpenAI-compatible interface to call 100+ LLM providers, with built-in routing, cost tracking, guardrails, and virtual keys.

View details
92
Repo Health
81
Technical
71
Dependency
Built with
Python84%
TypeScript14%
Updated today
Python
61%
Apache 2.0

marimo

Developer Tools · Data Engineering

22,393

A reactive Python notebook that eliminates hidden state, runs reproducibly, and deploys as a web app or script — stored as pure Python, built for the AI era.

View details
90
Repo Health
91
Technical
66
Dependency
Built with
Python61%
TypeScript37%
Updated today
Python
55%
Other

PostHog

Analytics · Monitoring · Developer Tools

37,777

The all-in-one open source product platform combining analytics, session replay, feature flags, error tracking, AI observability, and a built-in data warehouse in a single self-hostable stack.

View details
92
Repo Health
80
Technical
67
Dependency
Built with
Python55%
TypeScript36%
Updated today
Python
93%
BSD 3

skrub

Developer Tools

1,648

Turn messy real-world dataframes into machine learning features — no manual wrangling required.

View details
87
Repo Health
84
Technical
83
Dependency
Built with
Python93%
Updated yesterday

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search