polars
High-performance DataFrame library for fast data processing with lazy evaluation, parallel execution, and memory efficiency
Best use case
polars is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
High-performance DataFrame library for fast data processing with lazy evaluation, parallel execution, and memory efficiency
Teams using polars should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/polars/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How polars Compares
| Feature / Agent | polars | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
High-performance DataFrame library for fast data processing with lazy evaluation, parallel execution, and memory efficiency
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Polars
## When to Use This Skill
### USE Polars when:
- **Large datasets** - Working with data too large for pandas (10GB+)
- **Performance critical** - Need maximum speed for data transformations
- **Memory constrained** - Limited RAM requires efficient memory usage
- **Parallel processing** - Want to utilize all CPU cores automatically
- **Complex aggregations** - Group by, window functions, rolling calculations
- **Lazy evaluation** - Query optimization before execution matters
- **ETL pipelines** - Building production data pipelines
- **Streaming data** - Processing data larger than memory
### DON'T USE Polars when:
- **Pandas ecosystem required** - Need specific pandas-only libraries
- **Small datasets** - Under 100MB where pandas is sufficient
- **Legacy code** - Extensive existing pandas codebase
- **Matplotlib/Seaborn direct integration** - These work better with pandas
- **Time series with specialized needs** - Some pandas time series features are more mature
## Prerequisites
```bash
# Basic installation
pip install polars
# With all optional dependencies
pip install 'polars[all]'
# Specific extras
pip install 'polars[numpy,pandas,pyarrow,fsspec,connectorx,xlsx2csv,deltalake,timezone]'
# Using uv (recommended)
uv pip install polars pyarrow connectorx
```
## Complete Examples
### Example 1: ETL Pipeline for Sales Data
```python
import polars as pl
from pathlib import Path
from datetime import datetime
def etl_sales_pipeline(
input_dir: Path,
output_dir: Path,
min_date: str = "2025-01-01"
) -> dict:
*See sub-skills for full details.*
### Example 2: Time Series Analysis
```python
import polars as pl
import numpy as np
from datetime import datetime, timedelta
def analyze_time_series(
df: pl.DataFrame,
value_column: str,
time_column: str,
group_column: str = None
*See sub-skills for full details.*
### Example 3: Large-Scale Data Processing with Streaming
```python
import polars as pl
from pathlib import Path
import time
def process_large_dataset(
input_pattern: str,
output_path: str,
chunk_report_every: int = 1_000_000
) -> dict:
*See sub-skills for full details.*
## Version History
- **1.0.0** (2026-01-17): Initial release with comprehensive Polars coverage
- Core DataFrame operations
- Lazy evaluation patterns
- Expression API reference
- GroupBy and window functions
- Join operations
- ETL pipeline examples
- Time series analysis
- Streaming for large datasets
- Integration examples
- Best practices and troubleshooting
## Resources
- **Official Documentation**: https://docs.pola.rs/
- **User Guide**: https://docs.pola.rs/user-guide/
- **API Reference**: https://docs.pola.rs/api/python/stable/reference/
- **GitHub**: https://github.com/pola-rs/polars
- **Cookbook**: https://docs.pola.rs/user-guide/misc/cookbook/
---
**Use Polars for maximum performance on large datasets with intuitive, expressive data transformations!**
## Sub-Skills
- [1. DataFrame Creation and I/O](1-dataframe-creation-and-io/SKILL.md)
- [2. Lazy Evaluation and Query Optimization](2-lazy-evaluation-and-query-optimization/SKILL.md)
- [3. Expression API](3-expression-api/SKILL.md)
- [4. GroupBy and Aggregations (+1)](4-groupby-and-aggregations/SKILL.md)
- [6. Joins and Concatenation](6-joins-and-concatenation/SKILL.md)
- [Polars with Plotly Visualization (+1)](polars-with-plotly-visualization/SKILL.md)
- [1. Use Lazy Evaluation by Default (+4)](1-use-lazy-evaluation-by-default/SKILL.md)
- [Common Issues](common-issues/SKILL.md)Related Skills
polars-polars-with-plotly-visualization
Sub-skill of polars: Polars with Plotly Visualization (+1).
polars-6-joins-and-concatenation
Sub-skill of polars: 6. Joins and Concatenation.
polars-4-groupby-and-aggregations
Sub-skill of polars: 4. GroupBy and Aggregations (+1).
polars-3-expression-api
Sub-skill of polars: 3. Expression API.
polars-2-lazy-evaluation-and-query-optimization
Sub-skill of polars: 2. Lazy Evaluation and Query Optimization.
polars-1-use-lazy-evaluation-by-default
Sub-skill of polars: 1. Use Lazy Evaluation by Default (+4).
polars-1-dataframe-creation-and-io
Sub-skill of polars: 1. DataFrame Creation and I/O.
data-analysis-polars-high-performance-processing
Sub-skill of data-analysis: Polars High-Performance Processing (+5).
data-analysis-choose-polars-when
Sub-skill of data-analysis: Choose polars when: (+6).
test-oversized-skill
A test fixture skill that exceeds 200 lines with multiple H2/H3 sections for split testing.
interactive-report-generator
Generate interactive HTML reports with Plotly visualizations from data analysis results. Supports dashboards, charts, and professional styling.
data-validation-reporter
Generate interactive validation reports with quality scoring, missing data analysis, and type checking. Combines Pandas validation, Plotly visualization, and YAML configuration for comprehensive data quality reporting.