Polars is a fast-growing DataFrame library and an increasingly popular alternative to pandas, see Plotly’s blog: How Polars Can Help You Build Fast Dash Apps for Large Datasets
I built a lightweight tool that estimates the authoring complexity of Polars LazyFrame queries; that is, the cognitive effort required to write and to understand a query.
The library parses the unoptimized logical plan returned by LazyFrame.explain(optimized=False) and computes a complexity score and tier.
Because it’s lightweight and has no heavy dependencies, it integrates smoothly into Dash applications via a simple context manager.
The repository includes:
- a README showing how to integrate it with Dash;
- a standalone demo;
- a runnable implementation on TPC-H benchmark queries.
I’d love to hear feedback from the community, especially on potential Dash use cases or ideas for improving the scoring model.