๐ŸŒ
Polars
docs.pola.rs โ€บ py-polars โ€บ html โ€บ reference โ€บ dataframe โ€บ index.html
DataFrame โ€” Polars documentation
When the by argument is given, polars can not check sortedness by the metadata and has to do a full scan on the index column to verify data is sorted. This is expensive. If you are sure the data within the groups is sorted, you can set this to False. Doing so incorrectly will lead to incorrect output ... Hash and combine the rows in this DataFrame.
software library for data analysis
Polars is an open-source software library for data manipulation. Polars is built with an OLAP query engine implemented in Rust using Apache Arrow Columnar Format as the memory model. Although built using โ€ฆ Wikipedia
Factsheet
Original author Ritchie Vink
Developer Community
Written in Rust, Python
Original author Ritchie Vink
Developer Community
Written in Rust, Python
๐ŸŒ
Polars
pola.rs
Polars โ€” DataFrames for the new era
Polars is a high-performance DataFrame library for Python and Rust. Built on Apache Arrow, it's the fastest way to work with tabular data at any scale.
Discussions

I'm sceptic about polars
I went Polars for the syntax, not for the speed tbh More on reddit.com
๐ŸŒ r/dataengineering
179
83
July 17, 2024
Pandas or Polars to work with dataframes?
I rewrote some old code that used Pandas to graph statistics recorded at high frequency over long periods. Think around 50 columns, and millions of rows. But the catch? Each row was a span of time, not an instantaneous measurement - and the time spans were variable and overlapping. (specifically, job logs on an HPC cluster). The pandas 1.x code took about half an hour to run - mostly because of the majority of the work being stuck in a single thread. I rewrote it in Polars (with the help of an expert on the Polars discord) and it brought that down to three minutes. In contrast to the original code, this was able to leverage the cores available properly. I did not touch anything directly to do threading, like reading files in a pool or such. 100% the doing of Polars, there. More on reddit.com
๐ŸŒ r/Python
68
79
April 10, 2023
๐ŸŒ
GitHub
github.com โ€บ pola-rs โ€บ polars
GitHub - pola-rs/polars: Extremely fast Query Engine for DataFrames, written in Rust ยท GitHub
1 week ago - Polars is an analytical query engine for DataFrames, written in Rust. It is designed to be fast, easy to use and expressive.
Author ย  pola-rs
๐ŸŒ
CodeMag
codemag.com โ€บ Article โ€บ 2212051 โ€บ Using-the-Polars-DataFrame-Library
Using the Polars DataFrame Library
Wei-Meng shows you how Polars powers up speed and takes a bite out of inefficiencies in large datasets. Polars is a DataFrame library written in Rust, and despite its cute name, it brings all the p...
๐ŸŒ
Databricks
databricks.com โ€บ blog โ€บ polars-vs-pandas
Polars vs Pandas | Databricks
Pandas enjoys extensive documentation, community support and mature plotting libraries. Itโ€™s popular for small-to-medium sized datasets and exploratory analysis. Polars is a fast, Rust-based, columnar DataFrame library with a Python API.
๐ŸŒ
Polars
docs.pola.rs โ€บ api โ€บ python โ€บ stable โ€บ reference โ€บ dataframe โ€บ api โ€บ polars.DataFrame.rows.html
polars.DataFrame.rows โ€” Polars documentation
Try distributed Polars on Kubernetes or AWS for free. Get started now ... Returns all data in the DataFrame as a list of rows of python-native values.
Find elsewhere
๐ŸŒ
Pola-rs
pola-rs.github.io โ€บ r-polars โ€บ man โ€บ pl__DataFrame.html
DataFrame - Polars R Package
library("polars") # Constructing a DataFrame from vectors: pl$DataFrame(a = 1:2, b = 3:4)
๐ŸŒ
Reddit
reddit.com โ€บ r/dataengineering โ€บ i'm sceptic about polars
r/dataengineering on Reddit: I'm sceptic about polars
July 17, 2024 -

I've first heard about polars about a year ago, and It's been popping up in my feeds more and more recently.

But I'm just not sold on it. I'm failing to see exactly what role it is supposed to fit.

The main selling point for this lib seems to be the performance improvement over python. The benchmarks I've seen show polars to be about 2x faster than pandas. At best, for some specific problems, it is 4x faster.

But here's the deal, for small problems, that performance gains is not even noticeable. And if you get to the point where this starts to make a difference, then you are getting into pyspark territory anyway. A 2x performance improvement is not going to save you from that.

Besides pandas is already fast enough for what it does (a small-data library) and has a very rich ecosystem, working well with visualization, statistics and ML libraries. And in my opinion it is not worth splitting said ecosystem for polars.

What are your perspective on this? Did a lose the plot at some point? Which use cases actually make polars worth it?

๐ŸŒ
Practical Business Python
pbpython.com โ€บ polars-intro.html
Introduction to Polars - Practical Business Python
January 14, 2024 - As you work with pandas and polars there are convenience functions for moving back and forth between the two. Hereโ€™s an example of creating a pandas dataframe from polars:
๐ŸŒ
Dskrzypiec
dskrzypiec.dev โ€บ polars
Polars - modern data frame library
April 15, 2023 - Recently I was exposed to polars. As they describe *Lightning-fast DataFrame library for Rust and Python*. Initially I was neutral, thinking "ok just another data frame library just written in rust", but it turned out to be better in several aspects than other libraries of this kind.
๐ŸŒ
Reddit
reddit.com โ€บ r/python โ€บ pandas or polars to work with dataframes?
r/Python on Reddit: Pandas or Polars to work with dataframes?
April 10, 2023 -

I've been working with Pandas long time ago and recently I noticed that Pandas 2.0.0 was released (https://pandas.pydata.org/docs/dev/whatsnew/v2.0.0.html)
However, I see lots of people pointing up that the (almost new) library Polars is much faster than Pandas.
I also did 2 analyses on this and it looks like Polars is faster:
1- https://levelup.gitconnected.com/pandas-vs-polars-vs-pandas-2-0-fight-7398055372fb
2- https://medium.com/gitconnected/pandas-vs-polars-vs-pandas-2-0-round-2-e1b9acc0f52f

What is your opinion on this? Do you like more Polars?
Do you think Pandas 2.0 will decrease the time difference between Pandas and Polars?

๐ŸŒ
Polars
docs.pola.rs โ€บ user-guide โ€บ getting-started
Getting started - Polars user guide
Polars supports reading and writing for common file formats (e.g., csv, json, parquet), cloud storage (S3, Azure Blob, BigQuery) and databases (e.g., postgres, mysql). Below, we create a small dataframe and show how to write it to disk and read it back.
๐ŸŒ
Medium
medium.com โ€บ data-science โ€บ an-introduction-to-polars-for-pandas-users-2a52b2a03017
An Introduction to Polars for Pandas Users | by David Hundley | TDS Archive | Medium
March 7, 2023 - If youโ€™re like me, you may be hearing a lot of hype about this new Polars library but are not sure what it is or how to get started. If youโ€™re totally new to it, the simplest way to understand Polars is that it is a very fast alternative to the more traditional Pandas DataFrame library.
๐ŸŒ
Polars
docs.pola.rs โ€บ user-guide โ€บ ecosystem
Ecosystem - Polars user guide
Hugging Face is a platform for working with machine learning datasets and models. Polars can be used to work with datasets downloaded from Hugging Face. A DataFrame can be transformed into a PyTorch format using to_torch or into a JAX format using to_jax.
๐ŸŒ
Polars
docs.pola.rs โ€บ py-polars โ€บ html โ€บ reference โ€บ io.html
Input/output โ€” Polars documentation
read_avro(source, *[, columns, n_rows]) ยท Read into a DataFrame from Apache Avro format