pipeline
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack โ pandas + numpy + scipy +โฆ
Polars DataFrame library for high-performance data manipulation. Lazy/eager execution, expressions, I/O (CSV, Parquet, JSON), aggregations, joins, string/datetime ops, pandas interop. Use for Polars DataFrames or reading/writing Parquet files.
Claude Code
$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill polars --agent claude-code
Codex
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill polars -a codex -y
Cursor
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill polars -a cursor -y
Gemini CLI
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill polars -a gemini-cli -y
GitHub Copilot
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill polars -a github-copilot -y
OpenCode
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill polars -a opencode -y
Windsurf
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill polars -a windsurf -y
name: polars description: >- Polars DataFrame library for high-performance data manipulation. Lazy/eager execution, expressions, I/O (CSV, Parquet, JSON), aggregations, joins, string/datetime ops, pandas interop. Use for Polars DataFrames or reading/writing Parquet files. metadata: audience: research-coders domain: python-library library-version: "1.x" skill-last-updated: "2026-03-26"
Polars DataFrame library for high-performance data manipulation in Python. Covers lazy/eager execution, expressions, I/O (CSV, Parquet, JSON, database), aggregations, joins, string/datetime operations, pandas/NumPy interop, and performance optimization. Use when working with Polars DataFrames, migrating from pandas, reading Parquet files, or optimizing data pipeline performance.
Comprehensive skill for high-performance data manipulation with Polars. Use decision trees below to find the right guidance, then load detailed references.
Polars is a **fast** DataFrame library for Python (and Rust):
This skill targets **Polars 1.x** (tested with 1.37.1). Key changes from 0.x:
Each topic in `./references/` contains focused documentation:
| File | Purpose | When to Read | |------|---------|--------------| | `quickstart.md` | Installation, concepts, first DataFrame | Starting with Polars | | `dataframes-series.md` | Creation, selection, filtering, modification | Basic data manipulation | | `io-data.md` | CSV, Parquet, JSON, database I/O | Loading/saving data | | `expressions.md` | Expression system, contexts, chaining | Understanding Polars idioms | | `aggregations-grouping.md` | GroupBy, window functions, statistics | Summarizing data | | `joins-concat.md` | Joins, concatenation, pivot/unpivot | Combining DataFrames | | `strings-datetime-categorical.md` | String ops, datetime, categoricals | Type-specific operations | | `performance.md` | Lazy execution, optimization, anti-patterns | Making code faster | | `interop.md` | Pandas, NumPy, PyArrow, DuckDB | Working with other tools | | `gotchas.md` | Common errors, anti-patterns, migration | Debugging issues |
1. **New to Polars?** Start with `quickstart.md` then `expressions.md` 2. **Coming from Pandas?** Read `quickstart.md`, `expressions.md`, then `interop.md` 3. **Performance issues?** Check `performance.md` first
Getting started? โโ Install Polars โ ./references/quickstart.md โโ Create first DataFrame โ ./references/quickstart.md โโ Understand lazy vs eager โ ./references/quickstart.md โโ Learn expression syntax โ ./references/expressions.md โโ Coming from Pandas โ ./references/interop.md
Loading/saving data? โโ Read CSV file โ ./references/io-data.md โโ Read Parquet (recommended) โ ./references/io-data.md โโ Read JSON/NDJSON โ ./references/io-data.md โโ Read from database โ ./references/io-data.md โโ Read multiple files (glob) โ ./references/io-data.md โโ Write to file โ ./references/io-data.md โโ Larger-than-memory data โ ./references/performance.md
Filtering/selecting? โโ Select columns by name โ ./references/dataframes-series.md โโ Select by pattern/regex โ ./references/dataframes-series.md โโ Select by data type โ ./references/dataframes-series.md โโ Filter rows by condition โ ./references/dataframes-series.md โโ Filter with multiple conditions โ ./references/dataframes-series.md โโ Handle null values โ ./references/dataframes-series.md โโ Add/modify columns โ ./references/dataframes-series.md
Aggregating data? โโ Basic statistics (sum, mean, etc.) โ ./references/aggregations-grouping.md โโ Group by columns โ ./references/aggregations-grouping.md โโ Multiple aggregations โ ./references/aggregations-grouping.md โโ Window functions (over) โ ./references/aggregations-grouping.md โโ Rolling/moving averages โ ./references/aggregations-grouping.md โโ Cumulative operations โ ./references/aggregations-grouping.md โโ Ranking within groups โ ./references/aggregations-grouping.md
Combining data? โโ Join two DataFrames โ ./references/joins-concat.md โโ Left/right/outer join โ ./references/joins-concat.md โโ Anti-join (not in) โ ./references/joins-concat.md โโ Concatenate vertically โ ./references/joins-concat.md โโ Pivot (long to wide) โ ./references/joins-concat.md โโ Unpivot/melt (wide to long) โ ./references/joins-concat.md
Performance issues? โโ Use lazy evaluation โ ./references/performance.md โโ Avoid row iteration โ ./references/performance.md โโ Reduce memory usage โ ./references/performance.md โโ Process large files โ ./references/performance.md โโ Optimize query plan โ ./references/performance.md โโ Common anti-patterns โ ./references/performance.md
Having issues? โโ Type errors โ ./references/gotchas.md โโ Null handling โ ./references/gotchas.md โโ Expression context errors โ ./references/gotchas.md โโ String operations โ ./references/strings-datetime-categorical.md โโ Date parsing issues โ ./references/strings-datetime-categorical.md โโ Performance problems โ ./references/gotchas.md โโ Pandas migratio
## ๐ฅ ๅ่ ยท StatsPAI โ Stata ไธ R ็ Python ๅนณๆฟ๏ผไธบ AI Agent ่็ ๐ Stata / R ๅนณๆฟ๏ผreghdfeใcsdidใrdrobustใsynthใfixestใdid ็ญๅธธ็จๅฝไปคๅจ Python ไธญไธ็ซๅผๆฟไปฃ๏ผไธไธช import statspai as sp ๆๅฎ DID / RD / IV / SCM / DML / matching ๐ค ้ขๅ Agent ่ฎพ่ฎก๏ผ็ปๆๅ็ปๆๅฏน่ฑก + ๅ ็ฝฎ MCP Server๏ผClaude / Codex
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack โ pandas + numpy + scipy +โฆ
Use when the user asks to run a full empirical / causal analysis in Python โ by default in the style of an applied economicsโฆ
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack โ pandas + numpy + scipy +โฆ
Classical end-to-end empirical analysis workflow in the traditional Stata ecosystem โ native Stata + reghdfe + ivreg2 + csdid +โฆ
Classical end-to-end empirical analysis workflow in the modern tidyverse + econometrics R ecosystem โ dplyr + tidyr + haven +โฆ
Systematic writing framework for philosophy and interdisciplinary academic papers from optimized outline to submission-readyโฆ
Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also coversโฆ
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, fillingโฆ