Skip to content

Fast Arrow-based DataFrame library with expression API, lazy query optimization, and pandas migration support.

CCM score
70 of 100
skills.sh installs
539
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers core DataFrame work: select, filter, with_columns, group_by, window functions via over(), and joins and concatenation
  • Explains eager versus lazy evaluation, with scan_csv and collect() pipelines that push predicates and projections down
  • Includes CSV, Parquet, and JSON read and write patterns, plus a pandas-to-Polars operation mapping table
  • Guides performance practices such as avoiding Python functions in hot paths and selecting only needed columns early
  • Designed for data analysis workflows on large datasets where pandas runs too slowly or a migration is planned

Install

$ npx -y skills add davila7/claude-code-templates --skill polars -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Polars

Overview

Polars is a lightning-fast DataFrame library for Python and Rust built on Apache Arrow. Work with Polars' expression-based API, lazy evaluation framework, and high-performance data manipulation capabilities for efficient data processing, pandas migration, and data pipeline optimization.

Quick Start

Installation and Basic Usage

Install Polars:

uv pip install polars

Basic DataFrame creation and operations:

import polars as pl

# Create DataFrame
df = pl.DataFrame({
    "name": ["Alice", "Bob", "Charlie"],
    "age": [25, 30, 35],
    "city": ["NY", "LA", "SF"]
})

# Select columns
df.select("name", "age")

# Filter rows
df.filter(pl.col("age") > 25)

# Add computed columns
df.with_columns(
    age_plus_10=pl.col("age") + 10
)

Core Concepts

Expressions

Expressions are the fundamental building blocks of Polars operations. They describe transformations on data and can be composed, reused, and optimized.

Details

Repository
github.com/davila7/claude-code-templates
Categories
Data Science & Analytics, Python
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 398