polars

Migrates pandas-style data analysis to Polars expressions with eager or lazy execution.

46|4|Updated Apr 8, 2023
One-click install
npx skills add https://github.com/CRAG666/dotfiles --skill polars-crag666
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: polars
Source: https://github.com/CRAG666/dotfiles/tree/main/skills/polars
Command: npx skills add https://github.com/CRAG666/dotfiles --skill polars-crag666

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you write faster, more reliable data processing pipelines by replacing slow pandas workflows with Polars’ parallel and lazy execution.

Core Features & Use Cases

  • Fast eager and lazy DataFrame operations: Build expressions, then run them eagerly or as an optimized query plan.
  • Scalable ETL patterns: Perform filtering, selection pushdown, joins, group-bys, window functions, and reshaping efficiently on in-memory datasets.
  • Practical migration guidance: Convert common pandas idioms (select/filter/assign/groupby/transform) into Polars equivalents while avoiding performance anti-patterns.

Quick Start

Use the polars skill to migrate your pandas pipeline to a faster lazy Polars flow by running: scan a CSV, filter rows, select only needed columns, and collect results into a DataFrame.

Frequently Asked Questions about polars

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate pandas data analysis workflows to Polars for faster performance?

Polars lazy evaluation optimizes ETL pipelines by building a query plan using LazyFrame scan operations. This enables filtering, projection pushdown, and parallel execution on in-memory datasets before collecting results into a DataFrame.

What is the best way to perform window functions and joins on large datasets?

Perform window functions, joins, and group-bys efficiently on large datasets using Polars expression-based transformations. The framework applies parallel execution and pushdown optimizations to scale data reshaping operations reliably.

When should I use eager execution instead of lazy evaluation for DataFrame analytics?

Use eager execution for interactive analysis requiring immediate results, and lazy evaluation for production ETL pipelines needing query optimization. Polars supports both modes, allowing you to build expressions and run them according to your performance needs.

Why does using Python UDFs slow down Polars DataFrame transformations?

Python UDFs slow down Polars transformations by bypassing the native parallel execution and lazy optimization engine. Best-practice patterns use Polars APIs like pl.col expressions to maintain type safety and optimize performance.