# Polars

> Source: https://aiwiki.ai/wiki/polars
> Updated: 2026-12-05
> Fact-checked: 2026-11-18
> Categories: Data Science, Developer Tools, Open Source AI
> License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) - attribute to "AI Wiki (aiwiki.ai)"
> Cite as: AI Wiki. "Polars." aiwiki.ai, 5 Dec 2026. https://aiwiki.ai/wiki/polars
> From AI Wiki (https://aiwiki.ai), the free encyclopedia of artificial intelligence. Reuse freely with attribution.

**Polars** is an open-source [DataFrame](https://aiwiki.ai/wiki/dataframe) library and analytical query engine written in Rust, with interfaces for [Python](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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] |

<figure class="embedvideo">
<iframe src="https://www.youtube-nocookie.com/embed/yYAVrVMGaMY" title="Ritchie Vink - Polars 1.0 and beyond | PyData Amsterdam 2024"></iframe>
<figcaption>"Ritchie Vink - Polars 1.0 and beyond | PyData Amsterdam 2024", video from PyData, published October 22, 2024. <a href="https://www.youtube.com/watch?v=yYAVrVMGaMY">Watch on YouTube</a>.</figcaption>
</figure>

## Design

### Data model

Polars represents data in memory according to the Apache Arrow columnar specification, whereas pandas defaults to [NumPy](https://aiwiki.ai/wiki/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

<figure>
<a href="/images/polars-82c0366c27be.png"><img src="/images/polars-82c0366c27be.png" alt="Arrows rearrange three records labeled NL while rows belonging to other groups appear faded." width="1400" height="938" /></a>
<figcaption>In a Polars window expression, rows in one group can be sorted while keeping the group's original positions in the table. Here, only the rows for the Netherlands are highlighted. <a href="https://github.com/pola-rs/polars">Ritchie Vink and the Polars contributors</a>. <a href="https://github.com/pola-rs/polars/blob/bb50785ef016b8eddbf5c637c9ee31761558aab8/docs/source/user-guide/expressions/athletes_over_country.svg">Image source</a>. <a href="https://github.com/pola-rs/polars/blob/bb50785ef016b8eddbf5c637c9ee31761558aab8/LICENSE">MIT License</a>. Rendered from the original SVG.</figcaption>
</figure>



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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/dask) inside complete [deep learning](https://aiwiki.ai/wiki/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]

| Round | Date | Amount | Lead investor |
|---|---|---|---|
| Seed | 2023-08-03 | US$4 million | Bain Capital Ventures[4] |
| Series A | 2025-09-29 | €18 million (about US$21 million) | [Accel](https://aiwiki.ai/wiki/accel)[18][5] |

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](https://aiwiki.ai/wiki/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]

## See also

- [DataFrame](https://aiwiki.ai/wiki/dataframe)
- [pandas](https://aiwiki.ai/wiki/pandas)
- [Dask](https://aiwiki.ai/wiki/dask)
- [NumPy](https://aiwiki.ai/wiki/numpy)
- [RAPIDS](https://aiwiki.ai/wiki/rapids)
- [Ray](https://aiwiki.ai/wiki/ray)
- [Data science](https://aiwiki.ai/wiki/data_science)

## References

1. Polars contributors. "pola-rs/polars: Extremely fast Query Engine for DataFrames, written in Rust". GitHub. https://github.com/pola-rs/polars
2. Polars. "Polars user guide". docs.pola.rs. https://docs.pola.rs/
3. Ritchie Vink. "I wrote one of the fastest DataFrame libraries". ritchievink.com, 2021-02-28. https://www.ritchievink.com/blog/2021/02/28/i-wrote-one-of-the-fastest-dataframe-libraries/
4. Polars (press release via Business Wire). "Polars DataFrame Library Announces Seed Funding from Bain Capital Ventures". DutchNews.nl, 2023-08-03. https://www.dutchnews.nl/businesswire/polars-dataframe-library-announces-seed-funding-from-bain-capital-ventures/
5. Anna Heim. "The startup behind open source tool Polars raises $21M from Accel". TechCrunch, 2025-09-29. https://techcrunch.com/2025/09/29/the-startup-behind-open-source-tool-polars-raises-21m-from-accel/
6. Polars. "Lazy API". Polars user guide. https://docs.pola.rs/user-guide/concepts/lazy-api/
7. Polars. "Coming from Pandas". Polars user guide. https://docs.pola.rs/user-guide/migration/pandas/
8. Chiel Peters and Ritchie Vink. "Polars Cloud becomes Polars Nanook". Polars blog, 2026-11-05. https://pola.rs/posts/polars-cloud-becomes-polars-nanook/
9. Python Package Index. "polars". PyPI. https://pypi.org/project/polars/
10. Ritchie Vink. "Release of Polars 2.0". Polars blog, 2026-10-06. https://pola.rs/posts/release-polars-2/
11. Polars team. "Announcing Polars 2.1". Polars blog, 2026-10-27. https://pola.rs/posts/polars-2-1-changelog/
12. crates.io. "polars". crates.io. https://crates.io/crates/polars
13. Polars contributors. "pola-rs/nodejs-polars: nodejs front-end of polars". GitHub. https://github.com/pola-rs/nodejs-polars
14. Polars contributors. "pola-rs/r-polars: Polars R bindings". GitHub. https://github.com/pola-rs/r-polars
15. Ritchie Vink. "Announcing Polars 1.0". Polars blog, 2024-07-01. https://pola.rs/posts/announcing-polars-1/
16. Ritchie Vink, Robin van den Brink and Lawrence Mitchell. "GPU acceleration with Polars and NVIDIA RAPIDS". Polars blog, 2024-09-17. https://pola.rs/posts/gpu-engine-release/
17. Ritchie Vink. "Launch of Polars Cloud and Distributed Polars". Polars blog, 2025-09-03. https://pola.rs/posts/polars-cloud-launch/
18. Ritchie Vink. "Polars raises €18M Series A to build fast, ergonomic data processing at any scale". Polars blog, 2025-09-29. https://pola.rs/posts/series_a/
19. Thijs Nieuwdorp. "Polars in Aggregate: Polars Cloud, Streaming engine, and New Data Types". Polars blog, 2025-12-03. https://pola.rs/posts/polars-in-aggregate-dec25
20. Polars. "Expressions and contexts". Polars user guide. https://docs.pola.rs/user-guide/concepts/expressions-and-contexts/
21. Polars. "Optimizations". Polars user guide. https://docs.pola.rs/user-guide/lazy/optimizations/
22. Polars. "GPU Support". Polars user guide. https://docs.pola.rs/user-guide/gpu-support/
23. Polars. "Expression plugins". Polars user guide. https://docs.pola.rs/user-guide/plugins/expr_plugins/
24. Brian Tepera. "A new streaming backend for the Polars GPU engine". Polars blog, 2026-08-28. https://pola.rs/posts/gpu-streaming-backend/
25. Ritchie Vink. "Updated PDS-H benchmark results (May 2025)". Polars blog, 2025-06-01. https://pola.rs/posts/benchmarks/
26. Chiel Peters. "Polars Nanook benchmarked against Databricks Photon". Polars blog, 2026-11-12. https://pola.rs/posts/polars-nanook-vs-databricks/
27. 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. https://arxiv.org/abs/2312.11122
28. 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. https://doi.org/10.1145/3661167.3661203
29. 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. https://arxiv.org/abs/2511.08644
30. PyPI Stats. "polars". pypistats.org, accessed 2026-11-18. https://pypistats.org/packages/polars
31. Posit Team. "New Book: Python Polars: The Definitive Guide Now Available". Posit blog, 2025-04-29. https://posit.co/blog/python-polars-the-definitive-guide-now-available
32. Polars contributors. "Python Polars 2.1.0" (release py-2.1.0). GitHub, 2026-10-25. https://github.com/pola-rs/polars/releases/tag/py-2.1.0
33. Jeroen Janssens and Thijs Nieuwdorp. *Python Polars: The Definitive Guide*. O'Reilly Media, February 2025. ISBN 9781098156077. https://www.oreilly.com/library/view/python-polars-the/9781098156077/

