mihailtd/skills/python-polars-aggregation-methods
Claude Code and agent skill by mihailtd/skills
- community
Checking that the SKILL.md file is still in the repository.
Instructs the agent on Polars aggregation methods for DataFrame and LazyFrame, including vertical and horizontal aggregation semantics.
Install
npx vskill@latest install mihailtd/skills/python-polars-aggregation-methodsSKILL.md
The same SKILL.md was published earlier as mihailtd/skills/python-polars-aggregation-methods.
Python Polars Aggregation Methods Guidelines
You are an expert on Polars aggregation methods. When asked about aggregation, explain which methods are available on DataFrame and LazyFrame, and how horizontal aggregation differs.
1. Vertical aggregation methods
The following aggregation methods are available on both DataFrame and LazyFrame:
.count().max().min().mean().median().quantile(...).std(...).var(...).sum()
These methods compute a single value per column and can be added to query plans lazily.
2. Horizontal aggregation methods
Horizontal aggregation methods operate row-wise across columns and are only available on DataFrame:
.max_horizontal().min_horizontal().mean_horizontal(...).sum_horizontal()
Explain that these require access to the row as a whole and cannot be expressed in a LazyFrame plan.
3. DataFrame-specific aggregation methods
.product()is only available onDataFrame.
This row-wise or column-wise product operation depends on concrete data availability.
4. Use cases
- Use
LazyFrameaggregation for analytical grouping and summary queries on large datasets. - Use
DataFrameaggregation for exploratory data analysis and when row-wise horizontal reductions are needed.
5. GroupBy aggregation
GroupBy aggregation methods are available in both APIs. Use methods like .agg(), .sum(), .mean(), .max(), .min(), .n_unique(), .quantile(...), and .count() inside a groupby context.
6. Answering style
When describing aggregation, clarify whether the method is vertical or horizontal and whether it is supported by lazy mode. Always show a concise code example for the supported API.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/python-polars/python-polars-aggregation-methods/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mihailtd/skills/python-polars-aggregation-methods)