polars
Skill by sickn33
Teaches an AI assistant to use Polars, an expression-based DataFrame library for Python and Rust. It covers eager and lazy analytics, ETL pipelines and pandas migration. Best suited to data that fits in RAM.
Install polars
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/polars ~/.claude/skills/polarsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/polars ~/.gemini/antigravity-cli/skills/polarsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant working knowledge of Polars, a DataFrame library for Python and Rust built on Apache Arrow. It covers the expression-based API, including select, filter, with_columns, group_by and window functions with over(). It also covers joins, concatenation, pivots and unpivots, and I/O for CSV, Parquet, JSON and Excel. A pandas-to-Polars mapping table is included.
The skill explains eager DataFrame execution versus lazy LazyFrame evaluation, with query optimization, predicate and projection pushdown, and parallel execution. It points to bundled reference files for deeper topics. It is aimed at developers and data engineers building analytics or ETL pipelines, or moving pandas code to Polars. The source advises pinning the Polars version and testing on a small fixture before migrating.
Written from the project's SKILL.md and checked against it.
What it can do
- Expression-based APIBuilds column transformations with pl.col and chained expression methods.
- Lazy evaluationBuilds a query plan with LazyFrame and runs it optimized on collect.
- Group by and window functionsAggregates per group and applies window results with over().
- Joins and concatenationCombines DataFrames with inner or left joins and vertical, horizontal or diagonal concat.
- Pivot and unpivotReshapes data between wide and long formats.
- Data I/OReads and writes CSV, Parquet and JSON, with notes on Excel, cloud storage and databases.
- Pandas migrationMaps common pandas operations to Polars equivalents with examples.
What you need
- Python
- uv or pip to install polars
Try asking
- Convert this pandas groupby code to Polars and explain the changes
- Write a lazy Polars query that filters a Parquet file and selects columns
- Add a per-city average column to my DataFrame using a window expression
Good to know
- The source says examples are not a benchmark or a guarantee for 1 to 100 GB data.
- Streaming collect still materializes the result, so use a sink when output cannot fit in RAM.
- Pin the Polars version and compare results on a small fixture before migrating.
- Cloud and database reads and writes require an authorized destination, data scope and budget.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/polars/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md11 KB -
UPSTREAM-LICENSE.txt1 KB -
UPSTREAM-NOTICE.md2 KB -
references/best_practices.md14 KB -
references/core_concepts.md8 KB
Show all 9 files
-
references/io_guide.md12 KB -
references/operations.md12 KB -
references/pandas_migration.md13 KB -
references/transformations.md11 KB
Alternatives to polars
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
polars: common questions
Is Polars a good replacement for pandas?
The skill says Polars can be faster than pandas for in-memory data that still fits in RAM. It includes a migration guide with common operation mappings.
Does the skill handle data larger than memory?
The source says streaming support and memory needs depend on the query. Streaming collect still materializes the result, so a sink is needed when output cannot fit in RAM.
Which file formats does Polars support here?
The skill lists CSV, Parquet, JSON and Excel, plus databases through connectors, cloud storage such as S3, Azure and GCS, and Google BigQuery.
How do I install polars?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is polars free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is polars safe to use?
It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to polars?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
