Polars

Polars

Multi-threaded, vectorized DataFrame and SQL query engine written in Rust on Apache Arrow for Python, Rust, Node.js, and R.

★ 40.6K

Process massive DataFrames in seconds with Polars

Anyone who works with large CSV or Parquet files in pandas knows the pain of watching a single CPU core peg at 100% while RAM usage balloons to 5x the file size. Polars replaces single-threaded bottlenecks with a query engine written in Rust on top of the Apache Arrow columnar format. With 40.6K GitHub stars and 3,300 forks under the MIT license, it gives Python, Rust, Node.js, and R developers speed that feels instantaneous.

Why data teams migrate from pandas to Polars

  • Its lazy execution API (pl.scan_parquet) runs an automatic query optimizer that pushes filters down and reads only the columns your query actually uses.
  • Multi-threaded SIMD vectorization uses every CPU core on your machine, and an optional GPU engine accelerates heavy workloads on NVIDIA cards.
  • Out-of-core streaming spills to disk cleanly when a dataset exceeds your physical RAM.
  • You can mix chainable DataFrame expressions and standard SQL queries (`pl.sql`) in the exact same script, since both compile to the same execution plan.

What to watch out for

Polars does not use pandas-style row indexes or silent in-place mutation, so porting old pandas code requires rewriting `.loc` and index-reset habits into clean expression chains. A few legacy scikit-learn utilities may also expect a `.to_pandas()` or Arrow zero-copy conversion at the end of your pipeline.

Quick takeaway

Run pip install polars on your next tabular dataset and use scan_parquet to see how much faster lazy query optimization runs on your hardware.

Ready to try Polars?

Experience the full capabilities on their official website.

Visit Official Website