Polars for initial data analysis, Polars for production
Polars has two fundamental APIs, each of which is useful in different situations:
- “Eager” mode, which is similar to how Pandas works, is well-suited for initial and exploratory data analysis.
- For production use, “lazy” mode often execute much faster, with lower memory usage, at the cost of not giving you access to intermediate result.
In this article we’ll use both two APIs and see how Polars lets you transition from looking at the data to something we can run even more efficiently in production.
Source: Polars for initial data analysis, Polars for production, an article by Itamar Turner-Trauring.