polars

Process large tabular datasets in Python using Polars lazy and eager APIs.

1|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/yonesuke/skills --skill polars-yonesuke
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: polars
Source: https://github.com/yonesuke/skills/tree/main/polars
Command: npx skills add https://github.com/yonesuke/skills --skill polars-yonesuke

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires polars, numpy, and includes scripts (resource) components.

What problem does it solve?

Polars provides a fast, memory-efficient alternative to traditional dataframes for handling large datasets in Python, reducing processing time and enabling scalable analytics.

Core Features & Use Cases

  • Lazy API: build and optimize query pipelines with df.lazy()...collect().
  • Expressions: use vectorized column expressions like pl.col("a") * 2.
  • Eager API: immediate operations with df.filter(...) for quick checks and debugging.
  • Use Cases: data wrangling, aggregations, window functions, and analytics on large datasets where performance matters.

Quick Start

Read a CSV into a Polars DataFrame, perform a lazy aggregation by a category, and collect the result.

Frequently Asked Questions about polars

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

FAQPage Schema
How do I handle large tabular datasets efficiently in Python when data wrangling becomes too slow?

Processing large tabular datasets efficiently in Python requires a fast, memory-efficient dataframe framework. Polars uses a lazy API to build and optimize query pipelines, reducing processing time and enabling scalable analytics for large-scale data wrangling.

What is the difference between lazy and eager workflows for dataframe aggregation?

Lazy workflows build and optimize query pipelines using df.lazy()...collect() for maximum performance on large datasets, while eager workflows execute immediate operations like df.filter(...) for quick checks and debugging during dataframe aggregation.

How do I perform vectorized column expressions for data aggregation?

Vectorized column expressions for data aggregation are performed using Polars expressions like pl.col("a") * 2. These expressions integrate seamlessly into both lazy and eager workflows to deliver fast, vectorized results on tabular data.

Do I need NumPy installed to use Polars for window functions and analytical workflows?

NumPy is an optional dependency for Polars analytical workflows and window functions. The core dataframe operations, lazy evaluation, and aggregations function independently, but installing NumPy provides additional support for certain numerical computations.

What is the best way to optimize query pipelines for large dataset filtering?

The best way to optimize query pipelines for large dataset filtering is using the Polars lazy API. By defining operations with df.lazy() and deferring execution until collect(), the engine optimizes the entire query pipeline for maximum performance.

Can I use Polars with Python for scalable analytics on large datasets where performance matters?

Yes, Polars is designed for scalable analytics on large datasets where performance matters. It provides fast, memory-efficient dataframes in Python, supporting windowed computations, aggregations, and data wrangling through optimized lazy evaluation.