pipeline
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
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.
$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill polars --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/polarsContext preview
The summary Claude sees to decide when to auto-load this skill.
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.
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
📌 文档结构(2026-07-22 起): 本文件是中文默认入口 —— banner + badges + 信任面 + 9 阶段流水线速览 + 76 行合集总表。 每个合集的完整描述、按用途分组、精确数字、验证方法在 docs/CONTENT_ZH.md(扩展正文,总表行内的 → 直接跳转到对应锚点)。 English version: README-en.md · 中文扩展正文:docs/CONTENT_ZH.md · README-zh-CN.md 已弃用(重定向占位) 🌐 语言: English |
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Use when the user asks to run a full empirical / causal analysis in Python — by default in the style of an applied economics paper (AER / QJE / JPE / ReStud /…
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Classical end-to-end empirical analysis workflow in the traditional Stata ecosystem — native Stata + reghdfe + ivreg2 + csdid + did_imputation +…
Classical end-to-end empirical analysis workflow in the modern tidyverse + econometrics R ecosystem — dplyr + tidyr + haven + fixest + sandwich + lmtest +…
Systematic writing framework for philosophy and interdisciplinary academic papers from optimized outline to submission-ready manuscript. Use when users want…