Polars
Polars is an open-source DataFrame library and analytical query engine written in Rust, with interfaces for Python, Rust, Node.js, R and SQL.[1][2] Ritchie Vink started it in 2020 as a side project at the start of the COVID-19 pandemic, and it has since become widely used as an alternative to pandas for tabular data work.[3][4][5] Polars stores data in a columnar layout that follows the Apache Arrow memory format, runs queries in parallel across all CPU cores, and offers a lazy API whose query optimizer rewrites a whole query before running it.[1][6][7] The project is released under the MIT License.[1][4] Since 2023 its development has been sponsored by Polars B.V., an Amsterdam company founded by Vink and Chiel Peters that sells a managed and distributed version of the engine, renamed Polars Nanook in November 2026.[4][8] As of November 2026 the latest Python release is Polars 2.1, which followed the 2.0 release of October 2026 that made the streaming engine the default.[9][10][11]
History
Origins (2020 to 2022)
Vink wrote in February 2021 that he began the project at the start of the pandemic, when he found the state of DataFrame tooling in Rust unsatisfactory, and that a minimal crate for one use case grew into "one of the fastest DataFrame libraries available in Rust and Python."[3] The GitHub repository was created on 13 May 2020, and the polars crate was first published to crates.io in June 2020.[1][12] The earliest release of the polars package on PyPI is dated March 2021.[9] TechCrunch later summarized the motivation as frustration with the limitations of pandas.[5]
In the same 2021 post, Vink reported that Polars was the fastest DataFrame library in the H2O.ai db-benchmark after R's data.table, and in the top three of all tools in that benchmark; a March 2021 update added that Polars then had the fastest join algorithm in the benchmark.[3] He attributed the speed to a columnar design that suits CPU caches, branch prediction and SIMD instructions, to the Arrow memory format, and to lock-free parallel hashing in which each thread owns a share of the keys.[3] Bindings for Node.js and R are maintained in separate repositories, created on GitHub in July 2022 and December 2022.[13][14]
Company and version 1.0 (2023 to 2024)
On 3 August 2023 the newly incorporated company announced a seed round of US$4 million led by Bain Capital Ventures, with participation from individual investors.[4] Vink was described as a machine learning engineer and the creator of Polars, and Peters as a former CTO of Xomnia.[4] The announcement said the open-source project would remain MIT licensed and that the money would go toward a compute platform for running Polars at any scale.[4]
Polars 1.0 was released on 1 July 2024.[15][9] Vink wrote that the release signified "that the Polars in-memory engine and API is production ready"; at that point the project reported about 27,500 GitHub stars and more than 7 million monthly downloads.[15] The 1.0 announcement also described the project's practice of marking unsettled features as "unstable", so that they can change without counting as a breaking change, and previewed a redesigned streaming engine, GPU acceleration with NVIDIA and a hosted service.[15] The GPU engine arrived as an open beta on 17 September 2024.[16]
Cloud, funding and the streaming engine (2025)
Polars Cloud, a managed platform that runs Polars queries remotely, became generally available on Amazon Web Services on 3 September 2025, initially in the US East region, with a distributed engine in public beta.[17] On 29 September 2025 the company announced an €18 million Series A led by Accel, with Bain Capital Ventures following on from its seed investment; TechCrunch put the round at about US$21 million.[18][5] The company said the funds would go to making the open-source engine fully streaming, to a distributed engine with the same DataFrame API, and to a managed data platform.[18] It also said adoption had grown "from 250k to over 23M monthly users" during the seed period.[18]
A December 2025 review by Polars developer Thijs Nieuwdorp counted 37 releases and 2,323 merged pull requests since the previous edition a year earlier, and described the new streaming engine as built on research into morsel-driven parallelism.[19] The same review listed an overhaul of categorical data types, the stabilization of the Decimal type and a new Int128 type.[19]
Polars 2.0 and Polars Nanook (2026)
Polars 2.0 was released on 6 October 2026.[10][9] Its main change is that calling collect on a lazy query now uses the streaming engine by default.[10] Because the streaming engine does not guarantee row order by default for certain operations, such as join, group_by and unpivot, unless maintain_order=True is set, the change was treated as a major version bump.[10] Version 2.0 also turned on spilling to disk by default (starting at roughly 80% of RAM, with a default disk budget of 64 GB), added a native Map data type for Arrow map columns, treated SQL as a first-class interface, and made several behaviors stricter so that errors surface before a pipeline runs rather than partway through it.[10] Polars 2.1 was released on 25 October 2026 and announced two days later, with out-of-core group-bys and window functions, more SQL features such as recursive common table expressions, Apache Iceberg catalog and table management, and encrypted Parquet support; it also dropped support for Python 3.10.[11] The PyPI package for 2.1 requires Python 3.11 or later.[9][32]
On 5 November 2026 the company renamed Polars Cloud to Polars Nanook, saying the product had grown from managed cloud compute into a data platform that can also run on premises, including in air-gapped environments.[8] The polars_cloud package was kept working for a six-month transition period, after which users are expected to install polars-nanook instead.[8]
Timeline
| Date | Event |
|---|---|
| 2020-05-13 | GitHub repository created[1] |
| 2020-06-18 | polars crate first published on crates.io[12] |
| 2021-02-28 | Vink's blog post on Polars and the H2O.ai db-benchmark[3] |
| 2021-03-15 | First polars release on PyPI (0.0.1)[9] |
| 2023-08-03 | US$4 million seed round led by Bain Capital Ventures[4] |
| 2024-07-01 | Polars 1.0[15] |
| 2024-09-17 | GPU engine (built on NVIDIA cuDF) released as open beta[16] |
| 2025-09-03 | Polars Cloud generally available on AWS; distributed engine in public beta[17] |
| 2025-09-29 | €18 million Series A led by Accel[18] |
| 2026-10-06 | Polars 2.0; streaming engine becomes the default[10] |
| 2026-10-25 | Polars 2.1[9][32] |
| 2026-11-05 | Polars Cloud renamed Polars Nanook[8] |
Design
Data model
Polars represents data in memory according to the Apache Arrow columnar specification, whereas pandas defaults to NumPy arrays.[7] It can consume and produce Arrow data, often without copying, but the user guide notes that Polars "is not built on a Pyarrow/Arrow implementation" and has its own compute and buffer code.[2] Vink's 2021 post described some consequences of the Arrow layout: missing values are tracked in a separate validity bitmask rather than encoded as floating-point NaN, strings are stored contiguously instead of as boxed Python objects, and buffers are reference counted and immutable, which makes copies and slices cheap.[3]
Several choices set Polars apart from pandas. It has no index: each row is identified by its integer position.[7] Missing data is a null value for every data type, so integer columns with gaps do not turn into floats.[7] Polars is strict about data types and does not change them silently, and its stated goals include enforcing a strict schema so that types are known before a query runs.[7][2]
Expressions and contexts
The Polars API is built around expressions. The user guide defines an expression as "a lazy representation of a data transformation": it can be stored, combined and reused, and does nothing until it runs inside a context.[20] The main contexts are select, with_columns, filter, and group_by followed by agg.[20] Separate expressions within one context are "embarrassingly parallel", and Polars runs them in parallel.[20] Expression expansion lets one expression apply to many columns, for example every column of a given data type.[20] The migration guide for pandas users contrasts this with pandas, where complex logic often needs Python lambda functions.[7]
Eager and lazy execution
Polars has an eager API, which runs each operation immediately, and a lazy API, in which a query is evaluated only when it is collected.[6] Lazy queries usually start from a scan_* function such as scan_csv or scan_parquet, and explain returns a description of the query plan without running it.[6][1] The documentation recommends the lazy API unless the user needs intermediate results or is exploring data, and notes that many eager operations call the lazy engine internally.[6] Pandas supports only eager evaluation.[7]
The query optimizer applies the following rewrites, as listed in the user guide:[21]
| Optimization | What it does |
|---|---|
| Predicate pushdown | Applies filters as early as possible, at the scan |
| Projection pushdown | Reads only the columns the query needs |
| Slice pushdown | Loads only the required slice of rows |
| Common subplan elimination | Caches subtrees and file scans used more than once |
| Simplify expressions | Constant folding and cheaper replacements, until a fixed point |
| Join ordering | Chooses which join branches run first to reduce memory pressure |
| Type coercion | Coerces types so operations succeed with minimal memory |
| Cardinality estimation | Picks a group-by strategy from estimated cardinality |
Polars 2.0 added further optimizer work, including join reordering, better common-subplan elimination, and dynamic predicates with Bloom filters.[10]
Execution engines
Polars has three engines for lazy queries:
- In-memory engine. The original engine, declared production ready with version 1.0.[15]
- Streaming engine. A redesigned engine based on research into morsel-driven parallelism.[19] Parts of a query it does not support fall back to the in-memory engine.[19] It became the default in Polars 2.0, with spilling to disk enabled for sorts, window functions and many expressions; 2.1 extended spilling to group-bys.[10][11]
- GPU engine. An optional engine for NVIDIA GPUs, described below.[22]
SQL and extensions
Queries can be written in SQL as well as with the DataFrame API, and both run through the same optimizer and engine; the result of pl.sql is a regular lazy frame that can be combined with expressions.[1] Users can extend Polars with expression plugins and I/O plugins.[1] Expression plugins are Rust functions compiled into a library (typically with maturin) and linked into the Polars engine at runtime; the documentation says they run "almost as fast as native expressions" and without contention for Python's global interpreter lock.[23]
GPU engine
The GPU engine was developed by the Polars and NVIDIA teams and is built on cuDF, the GPU DataFrame library in NVIDIA's RAPIDS suite.[16] It hooks in after Polars has built and optimized a query plan, so it shares the CPU engine's semantics and optimizations, and a query is run with collect(engine="gpu").[16] It is available only in Python Polars and works only with the lazy API, not the eager one.[16][22] When an operation is not supported, the whole query falls back to the CPU engine unless the user asks for an error instead.[22] As of November 2026 the documentation lists GPU support as an open beta that needs an NVIDIA GPU with compute capability 7.0 or higher, CUDA 12 or 13, and Linux or WSL2.[22]
In the September 2024 announcement, the developers reported speedups of up to 13 times on their PDS-H benchmark at scale factor 80, comparing an NVIDIA H100 PCIe GPU with an Intel Xeon W9-3495X CPU; compute-heavy queries with joins and group-bys gained the most, while I/O-bound queries did not gain.[16] An August 2026 post on the Polars blog by Brian Tepera of NVIDIA described a new streaming backend for the GPU engine (the cudf-polars package), shipped in its 26.06 release and built on the RapidsMPF library, which splits data into chunks, spills idle chunks to host memory so that a single GPU can process data larger than its memory, and runs on several GPUs without a separate code path.[24] The post reported that on about 1 TB of data, one NVIDIA B200 ran the PDS-H queries 3.2 times faster than the Polars CPU engine on a dual-socket Xeon, and that on about 3 TB eight B200 GPUs were 23.2 times faster.[24]
Performance
Polars publishes its own benchmark, PDS-H (Polars Decision Support), derived from the TPC-H decision-support benchmark; the project states that PDS-H results "are not comparable to published TPC-H Benchmark results."[25] The May 2025 run used an AWS c7a.24xlarge instance (96 vCPUs, 192 GB of memory):[25]
| Solution | SF-10 total (s) | SF-100 total (s) |
|---|---|---|
| Polars 1.30 (streaming) | 3.89 | 23.94 |
| DuckDB 1.3.0 | 5.87 | 19.65 |
| Polars 1.30 (in-memory) | 9.68 | 152.27 |
| Dask 2025.5.1 | 46.02 | 548.52 |
| PySpark 4.0.0 | 120.11 | 312.43 |
| pandas 2.2.3 | 365.71 | not run |
Pandas was run only at scale factor 10 because of its single-threaded execution and out-of-memory failures at larger sizes.[25] The author attributed the slowdown of the in-memory engine at scale factor 100 mainly to CPU cache misses and memory-bound work, which the streaming engine avoids.[25] For the 2.0 release the company reported results against DuckDB and Apache DataFusion on TPC-H- and TPC-DS-derived queries, in which Polars was fastest on all but one benchmark by default; it also noted a constant overhead at 192 threads that hurts small queries.[10] In November 2026 the company published a comparison of Polars Nanook with Databricks Photon at scale factor 1,000, reporting that Nanook was faster on 17 of 22 PDS-H queries and 1.3 times faster overall; the post does not list the hardware itself but points to an earlier post and the project's benchmark repository for the setup.[26] All of these figures come from the Polars developers themselves, and the GPU figures above come from NVIDIA.
Independent academic studies have reached broadly similar conclusions for single-machine work. An evaluation of Python DataFrame libraries for data preparation, published at the EDBT 2025 conference, found that pandas was the best choice for small datasets, that Polars was "the go-to choice" when data fits in RAM and full pandas compatibility is not needed, that cuDF often performed best when a GPU was available, and that PySpark was the best option for data too large for GPU memory and RAM.[27] A 2024 study at the EASE software engineering conference found Polars more energy efficient than pandas on large DataFrames; on small DataFrames the TPC-H-based tasks showed no significant difference, while Polars was significantly better on the study's synthetic tasks.[28] Researchers have also measured pandas, Polars and Dask inside complete deep learning training and inference pipelines, comparing runtime, memory, disk use and CPU and GPU energy.[29]
Comparison with pandas
| Aspect | Polars | pandas |
|---|---|---|
| Memory format | Apache Arrow columnar | NumPy arrays by default |
| Row index | None (integer position) | Labeled index |
| Missing values | null for all types | NaN or None depending on type |
| Parallelism | Multi-threaded | Core mostly single-threaded |
| Evaluation | Eager and lazy, with optimizer | Eager only |
| Type handling | Strict | Converts types loosely |
Sources for the table: the Polars migration guide for pandas users and the Polars user guide.[7][2]
Polars company and commercial products
Polars B.V. is based in Amsterdam and lists Ritchie Vink and Chiel Peters as its founders.[4][8] The company sponsors development of the open-source library and sells a hosted product on top of it.[4][18]
The commercial product launched as Polars Cloud in September 2025 and was renamed Polars Nanook on 5 November 2026.[17][8] It is offered as a managed service on AWS or for installation on any Kubernetes distribution,[26] and the managed version starts compute in the customer's own environment (EC2 instances that boot in about 45 seconds, according to the company) and lets a query written for single-machine Polars run remotely or on the distributed engine.[8][18] According to the rename announcement, most of the Polars API now has distributed implementations, including operations that are hard to distribute such as dynamic group-bys, as-of joins and rolling aggregations, and out-of-core execution is on by default.[8] Planned additions announced at the time included Apache Iceberg catalog support, "warm" compute for near-instant interactive and agent workloads, and a single Model Context Protocol interface for agents.[8]
Adoption
As of November 2026 the GitHub repository had about 40,400 stars and 3,200 forks, and the polars package was downloaded about 68 million times from PyPI in the preceding month.[1][30] The company reported 23 million monthly users in September 2025, and TechCrunch reported that Polars had passed 24 million downloads and was used in production in finance, life sciences and logistics.[18][5] O'Reilly published Python Polars: The Definitive Guide by Jeroen Janssens and Thijs Nieuwdorp in February 2025, with a foreword by Vink.[31][33]
Continue reading
- PandasPandas is an open-source data analysis and manipulation library for the Python programming language, providing high-performance, flexible data structures designed for working with structured (tabular…Mentioned 16 times above
- DataFrameA DataFrame is a two-dimensional, size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns), in which each column can hold a different data type and arithmetic…Mentioned 10 times above
- DaskDask is an open-source Python library for parallel and distributed computing that scales the familiar APIs of libraries such as NumPy, pandas, and scikit-learn to process larger-than-memory datasets.Mentioned twice above
- NumPyNumPy (short for Numerical Python) is the foundational open-source library for numerical and scientific computing in Python, providing an n-dimensional array object called ndarray along with a large collection…Mentioned twice above
- RAPIDSRAPIDS is an open-source suite of GPU-accelerated software libraries for data science, analytics, and machine learning, developed and maintained by Nvidia.Listed in See also
- Ray (framework)Ray is an open-source distributed computing framework, developed at the University of California, Berkeley's RISELab and commercialized by Anyscale, that lets developers scale Python and artificial…Listed in See also
More from See also
More to read
References
- ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9Polars contributors. "pola-rs/polars: Extremely fast Query Engine for DataFrames, written in Rust". GitHub. github.com/...polars
- ^1 ^2 ^3 ^4Polars. "Polars user guide". docs.pola.rs. docs.pola.rs
- ^1 ^2 ^3 ^4 ^5 ^6Ritchie Vink. "I wrote one of the fastest DataFrame libraries". ritchievink.com, 2021-02-28. ritchievink.com/...the-fastest-dataframe-libraries
- ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9 ^10Polars (press release via Business Wire). "Polars DataFrame Library Announces Seed Funding from Bain Capital Ventures". DutchNews.nl, 2023-08-03. dutchnews.nl/...funding-from-bain-capital-ventures
- ^1 ^2 ^3 ^4 ^5Anna Heim. "The startup behind open source tool Polars raises $21M from Accel". TechCrunch, 2025-09-29. techcrunch.com/...ool-polars-raises-21m-from-accel
- ^1 ^2 ^3 ^4Polars. "Lazy API". Polars user guide. docs.pola.rs/...lazy-api
- ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8Polars. "Coming from Pandas". Polars user guide. docs.pola.rs/...pandas
- ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9Chiel Peters and Ritchie Vink. "Polars Cloud becomes Polars Nanook". Polars blog, 2026-11-05. pola.rs/...polars-cloud-becomes-polars-nanook
- ^1 ^2 ^3 ^4 ^5 ^6 ^7Python Package Index. "polars". PyPI. pypi.org/...polars
- ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9Ritchie Vink. "Release of Polars 2.0". Polars blog, 2026-10-06. pola.rs/...release-polars-2
- ^1 ^2 ^3Polars team. "Announcing Polars 2.1". Polars blog, 2026-10-27. pola.rs/...polars-2-1-changelog
- ^1 ^2crates.io. "polars". crates.io. crates.io/...polars
- ^Polars contributors. "pola-rs/nodejs-polars: nodejs front-end of polars". GitHub. github.com/...nodejs-polars
- ^Polars contributors. "pola-rs/r-polars: Polars R bindings". GitHub. github.com/...r-polars
- ^1 ^2 ^3 ^4 ^5Ritchie Vink. "Announcing Polars 1.0". Polars blog, 2024-07-01. pola.rs/...announcing-polars-1
- ^1 ^2 ^3 ^4 ^5 ^6Ritchie Vink, Robin van den Brink and Lawrence Mitchell. "GPU acceleration with Polars and NVIDIA RAPIDS". Polars blog, 2024-09-17. pola.rs/...gpu-engine-release
- ^1 ^2 ^3Ritchie Vink. "Launch of Polars Cloud and Distributed Polars". Polars blog, 2025-09-03. pola.rs/...polars-cloud-launch
- ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8Ritchie Vink. "Polars raises €18M Series A to build fast, ergonomic data processing at any scale". Polars blog, 2025-09-29. pola.rs/...series_a
- ^1 ^2 ^3 ^4Thijs Nieuwdorp. "Polars in Aggregate: Polars Cloud, Streaming engine, and New Data Types". Polars blog, 2025-12-03. pola.rs/...polars-in-aggregate-dec25
- ^1 ^2 ^3 ^4Polars. "Expressions and contexts". Polars user guide. docs.pola.rs/...expressions-and-contexts
- ^Polars. "Optimizations". Polars user guide. docs.pola.rs/...optimizations
- ^1 ^2 ^3 ^4Polars. "GPU Support". Polars user guide. docs.pola.rs/...gpu-support
- ^Polars. "Expression plugins". Polars user guide. docs.pola.rs/...expr_plugins
- ^1 ^2Brian Tepera. "A new streaming backend for the Polars GPU engine". Polars blog, 2026-08-28. pola.rs/...gpu-streaming-backend
- ^1 ^2 ^3 ^4Ritchie Vink. "Updated PDS-H benchmark results (May 2025)". Polars blog, 2025-06-01. pola.rs/...benchmarks
- ^1 ^2Chiel Peters. "Polars Nanook benchmarked against Databricks Photon". Polars blog, 2026-11-12. pola.rs/...polars-nanook-vs-databricks
- ^Angelo Mozzillo, Luca Zecchini, Luca Gagliardelli, Adeel Aslam, Sonia Bergamaschi and Giovanni Simonini. "Evaluation of Dataframe Libraries for Data Preparation on a Single Machine". Proceedings of the 28th International Conference on Extending Database Technology (EDBT 2025), pp. 337-349. arXiv:2312.11122. arxiv.org/...2312.11122
- ^Felix Nahrstedt, Mehdi Karmouche, Karolina Bargieł, Pouyeh Banijamali, Apoorva Nalini Pradeep Kumar and Ivano Malavolta. "An Empirical Study on the Energy Usage and Performance of Pandas and Polars Data Analysis Python Libraries". Proceedings of the 28th International Conference on Evaluation and Assessment in Software Engineering (EASE 2024), pp. 58-68, 2024. doi.org/...3661167.3661203
- ^Punit Kumar, Asif Imran and Tevfik Kosar. "Energy Consumption of Dataframe Libraries for End-to-End Deep Learning Pipelines: A Comparative Analysis". arXiv:2511.08644, 2025. arxiv.org/...2511.08644
- ^PyPI Stats. "polars". pypistats.org, accessed 2026-11-18. pypistats.org/...polars
- ^Posit Team. "New Book: Python Polars: The Definitive Guide Now Available". Posit blog, 2025-04-29. posit.co/...ars-the-definitive-guide-now-available
- ^1 ^2Polars contributors. "Python Polars 2.1.0" (release py-2.1.0). GitHub, 2026-10-25. github.com/...py-2.1.0
- ^Jeroen Janssens and Thijs Nieuwdorp. *Python Polars: The Definitive Guide*. O'Reilly Media, February 2025. ISBN 9781098156077. oreilly.com/...9781098156077
Improve this article
Add missing citations, update stale details, or write a clearer explanation. Anyone can edit: changes go live when you publish, and every edit is checked by an editor.
3 revisions · v3 · 3,480 words · full history
Fact-checks are independent of edits: a reviewer re-verifies the article against its sources and stamps the date. How we verify
Research and drafting on this wiki are AI-assisted, under named human editorial standards. How AI is used here
Reviewer note: Independent fact-check before publication on November 18, 2026: 96 claims checked against 37 cited and independent sources; 1 material and 8 minor corrections applied before publication.
Cite this page: AI Wiki. "Polars." aiwiki.ai, updated 5 Dec 2026, fact-checked 18 Nov 2026. CC BY 4.0. https://aiwiki.ai/wiki/polars




