/major-ai-skills:polarsfrom major-ai-skills
Build Polars expression and LazyFrame pipelines for CSV or Parquet analytics with selective and streaming scans.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Polars is a Rust-backed DataFrame library with eager DataFrame and deferred LazyFrame plans. Expressions (pl.col, pl.when) describe column work; the optimizer pushes projections and predicates into scans. Agents default to lazy + collect() (or streaming) for multi-file Parquet pipelines and keep joins/filters as expressions, not Python loops.
scan_parquet / scan_csv
-> LazyFrame plan
-> filter / select / group_by / join
-> collect() or sink_parquet()
scan_* + LazyFrame over read_* when files are large.collect(streaming=True) / sink_parquet for bigger-than-RAM paths (API varies by version)..map_elements unless no expression alternative exists.import polars as pl
q = (
pl.scan_parquet("data/orders/*.parquet")
.filter(pl.col("created_at") >= pl.datetime(2025, 1, 1))
.group_by("customer_id")
.agg(
pl.col("amount").sum().alias("revenue"),
pl.len().alias("n_orders"),
)
.sort("revenue", descending=True)
)
top = q.collect()
result = (
orders_lf.join(customers_lf, on="customer_id", how="left")
.select("order_id", "customer_id", "segment", "amount")
.collect()
)
| Symptom | Cause | Fix |
|---|---|---|
| Schema mismatch on concat | differing dtypes/names | cast / align schemas |
| Slow collect | materializing too early | keep lazy until end |
| OOM | wide joins + full collect | project columns; streaming sink |
| Wrong null join | null keys | filter or coalesce intentionally |
explain(optimized=True) when plans surprise you.pl.Expr over UDFs for SIMD-friendly execution.@spark for that).@pandas - ecosystem compatibility and small-frame UX@duckdb - SQL analytics over the same files@spark - multi-node scale-outWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization.Other plugins' skills for the same job
/act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.