Polars
Polars fast DataFrame library. Use for fast data processing.From its SKILL.md
npx -y skills add G1Joshi/Agent-Skills --skill polarsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.1 KB, 265 tokens by cl100k_base, as published. Nobody here has run it
Polars
Polars is the fast successor to Pandas. Written in Rust, query-optimized, and parallelized. v1.0 (2024) signaled production readiness.
When to Use
- Performance: 10-100x faster than Pandas on large data.
- Lazy Evaluation: Define a query plan and execute it efficiently (
.collect()). - Streaming: Process datasets larger than RAM.
Core Concepts
Lazy API (.lazy())
Builds a query plan. Polars optimizes it (predicate pushdown) before reducing it.
Expressions
pl.col("a").sum() is an expression, not a direct calculation.
Compatibility
Can convert to/from Pandas/PyArrow zero-copy.
Best Practices (2025)
Do:
- Use Lazy Mode:
df.lazy().filter(...).collect(). - Use
scan_parquet: Don't load the whole file; scan it. - Use GPU engine: Polars has experimental NVIDIA RAPIDS support.
Don't:
- Don't treat it like Pandas: The API is different (
axis=1doesn't exist; use expressions).
References
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.