pandas

Solid

Use when analyzing or transforming tabular data in Python. Covers vectorized operations, memory-efficient dtypes, correct joins, groupby patterns, and avoiding the silent errors pandas makes easy.

Data & Documents 23 stars 2 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
46
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Pandas ## Purpose Transform and analyze tabular data correctly and at speed. Pandas makes it easy to write code that is slow, and easier still to write code that is silently wrong. ## When to Use - Cleaning, transforming, or analyzing tabular data in Python. - A pandas operation that is slow or exhausting memory. - Reviewing analysis code for correctness. - Deciding whether the dataset has outgrown pandas. ## Capabilities - Vectorized operations and eliminating row-wise loops. - Memory reduction through dtype selection. - Merge and join semantics, including the ones that silently duplicate rows. - Groupby, aggregation, and window functions. - Chunked processing and the migration path to Polars or DuckDB. ## Inputs - The data source, its size, and its schema. - The transformation or analysis required. - The memory available. ## Outputs - Vectorized transformations with no `iterrows`. - Explicit dtypes, including categoricals for low-cardinality strings. - Joins with verified cardinality. ## Workflow 1. **Set dtypes at read time** — Reading a CSV without `dtype` gives you `object` columns and `float64` for everything numeric. This is usually a 5-10x memory difference. 2. **Vectorize** — Any `for` loop or `iterrows` over a DataFrame should be a vectorized expression, a `groupby`, or a `merge`. `apply` is a loop with better syntax. 3. **Verify every join** — `merge(..., validate="one_to_many")`. An unvalidated join that is secretly many-to-many silently multiplies y...

Details

Author
nimadorostkar
Repository
nimadorostkar/Claude-Skills-collection
Created
2 weeks ago
Last Updated
yesterday
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Listed

python-data-patterns

Pandas, Polars, and PySpark idioms for production data engineering — chunked reads, memory-safe transforms, vectorized operations, type optimization, and performance patterns. Use this skill whenever the user is writing a Python data transformation script and running into memory issues, slow performance, or correctness bugs with large datasets. Also trigger when the user asks how to handle large CSV/Parquet files, process data in batches, use Polars instead of Pandas, optimize a PySpark job, or reduce DataFrame memory usage. If you see someone iterating row-by-row over a DataFrame, this skill should trigger immediately.

1 Updated 1 weeks ago
Methasit-Pun
AI & Automation Solid

pandas-pro

Use when working with pandas DataFrames, data cleaning, aggregation, merging, or time series analysis. Invoke for data manipulation, missing value handling, groupby operations, or performance optimization.

4 Updated yesterday
zacklecon
Data & Documents Solid

pandas-data-cleaning

Cleans messy tabular datasets in pandas end-to-end — fixing dtypes, parsing dates and numbers, standardizing text, handling missing values, removing duplicates, detecting and treating outliers, and reshaping wide/long into tidy data. Use this skill when the user asks to "clean this CSV/Excel/dataframe", "fix data types", "handle missing values / NaNs", "remove duplicates", "deal with outliers", "standardize column names or categories", "parse dates", "melt/pivot/reshape", or to build a reproducible cleaning pipeline before analysis or modeling.

3 Updated today
JayRHa