Polars is a DataFrame and SQL query engine written in Rust, exposed to Python, R, Node.js, and Rust. It emphasizes parallel, vectorized execution with lazy optimization and out-of-core streaming.
Overview
Polars lets analysts and engineers manipulate structured tables through a lazy DataFrame API, SQL, or a mix of both routed through the same optimizer and execution engine. It is built for multi-threaded SIMD workloads and can spill to disk when operations exceed available memory.
Users express filters, joins, groupings, and aggregations in code or SQL, with lazy plans optimized before collection. The project interoperates with Apache Arrow for zero-copy sharing, supports optional GPU acceleration on NVIDIA hardware, and allows custom I/O and expression plugins.
Bindings are installed as language packages, with Python being the most documented path and optional compile-from-source flows for tuned binaries. Documentation covers streaming APIs for datasets larger than RAM and distributed execution guidance for scaling queries across clusters.
Polars positions itself as an alternative to pandas-style workflows where predictable schemas, query planning, and raw performance matter. Community support includes an active issue tracker, contributor guides, and a Discord server.
Key features
- Lazy DataFrame query optimizer
- SQL and expression APIs combined
- Multi-threaded vectorized execution
- Out-of-core streaming processing
- Apache Arrow columnar interoperability
- Optional NVIDIA GPU acceleration
- Custom I/O and expression plugins
- Python, R, Node.js, and Rust APIs
Use cases
- Large tabular data transformation
- ETL pipelines in Python or Rust
- SQL analytics on in-memory tables
- Out-of-memory dataset processing
- High-performance dataframe replacements