fabric-pandas-perf-remediate

fabric-pandas-perf-remediate is a skill for Claude Code, Codex from PatrickGallucci/fabric-skills. It costs 107 tokens per session (3,355 once invoked), scanned A, original, MIT.

Guidance for diagnosing and fixing slow or memory-heavy pandas work in Microsoft Fabric Spark notebooks. It covers pandas, Spark DataFrames, and pandas API on Spark, which lets pandas-style code run on Spark.

In plain words
What is it for?
Investigating slow pandas operations, failed toPandas() or collect() calls, conversion problems, driver-memory exhaustion, and choosing between pandas, Spark, or pandas API on Spark.
Why use it?
It helps identify why notebook cells time out, run out of memory, or overload the Spark driver when data is moved between systems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Investigating slow pandas operations, failed toPandas() or collect() calls, conversion problems, driver-memory exhaustion, and choosing between pandas, Spark, or pandas API on Spark.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/patrickgallucci/fabric-skills/fabric-pandas-perf-remediate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PatrickGallucci/fabric-skills --skill fabric-pandas-perf-remediate
Clone the repo
git clone --depth 1 https://github.com/PatrickGallucci/fabric-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fabric-pandas-perf-remediate

README.md
[![agentmods](https://agentmods.dev/badge/skills/patrickgallucci/fabric-skills/fabric-pandas-perf-remediate/github.svg)](https://agentmods.dev/skills/patrickgallucci/fabric-skills/fabric-pandas-perf-remediate)
Your own site
<a href="https://agentmods.dev/skills/patrickgallucci/fabric-skills/fabric-pandas-perf-remediate"><img src="https://agentmods.dev/badge/skills/patrickgallucci/fabric-skills/fabric-pandas-perf-remediate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fabric-pandas-perf-remediate

Your own site · 80×15
<a href="https://agentmods.dev/skills/patrickgallucci/fabric-skills/fabric-pandas-perf-remediate"><img src="https://agentmods.dev/badge/skills/patrickgallucci/fabric-skills/fabric-pandas-perf-remediate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,355 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00107 $0.03355
Opus 5 $0.00053 $0.01677
Sonnet 5 $0.00021 $0.00671
Haiku 4.5 $0.00011 $0.00335

Measured 13d ago against content hash 364b9144afa2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

fabric-pandas-perf-remediate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/Invoke-PandasDiagnostics.ps1, templates/pandas-performance-template.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/fabric-pandas-perf-remediate/SKILL.md · 375 lines

How it starts

The opening of the file, as written. The whole thing — 375 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Fabric Pandas Performance Troubleshooting

Diagnose and resolve pandas-related performance issues in Microsoft Fabric Spark notebooks, including memory exhaustion, slow conversions, and suboptimal pandas API on Spark usage.

When to Use This Skill

  • Notebook cells hang or timeout during pandas operations
  • toPandas() fails with OutOfMemoryError or Java heap space errors
  • collect() crashes the driver node
  • Pandas API on Spark (pyspark.pandas / ps) runs slower than expected
  • DataFrame conversion between Spark and pandas causes memory spikes
  • Notebook kernel restarts unexpectedly during data processing
  • Large dataset operations exhaust driver memory on Fabric capacity
  • Need to choose between pandas, Spark DataFrame, or pandas API on Spark

Prerequisites

  • Microsoft Fabric workspace with Data Engineering experience
  • Fabric capacity F2 or higher (F64+ recommended for large datasets)
  • PySpark notebook with Spark session active
  • Basic familiarity with pandas and PySpark DataFrames

Quick Diagnosis

Symptom-to-Solution Map

Symptom Likely Cause Jump To
toPandas() OOM error Dataset too large for driver toPandas Optimization
Kernel restart during pandas op Driver memory exhausted Driver Memory Tuning
pyspark.pandas slower than native pandas Spark overhead on small data Right-Size Your Approach
Slow groupby/merge in pandas API on Spark Excessive shuffling Shuffle Optimization
Cell timeout on DataFrame conversion Large collect to driver Incremental Processing
ArrowInvalid or conversion errors Schema mismatch / nulls Arrow Conversion Fixes
High memory but slow pandas operations GC pressure / fragmentation Memory Profiling

Right-Size Your Approach

Critical Decision: Choose the right DataFrame API for your data size and workload.

Read the full file on GitHub · 375 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 375 lines · 107 tokens per session scan A 364b9144afa2

Subscribe to this mod's changes

fabric-pandas-perf-remediate is a skill published in the GitHub repository PatrickGallucci/fabric-skills (16 stars, last pushed 3mo ago), licensed MIT. It adds 107 tokens to every session and 3,355 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

dask

Distributed computing for larger-than-RAM pandas/NumPy workflows. Use when you need to scale existing pandas/NumPy code beyond memory or across clusters. Best for parallel file processing, distributed ML, integration with existing pandas code. For out-of-core analytics on single machine use vaex; for in-memory speed…

K-Dense-AI/scientific-agent-skills · 69 tokens

optimize-for-gpu

GPU-accelerates scientific Python on NVIDIA hardware and verifies that the result is correct and faster. Use for CUDA/GPU optimization; CPU-bound NumPy, SciPy, pandas, scikit-learn, NetworkX, scikit-image, vector-search, image-processing, graph, simulation, or file-I/O workloads; CuPy, cuDF, cuML, cuGraph, cuVS…

K-Dense-AI/scientific-agent-skills · 151 tokens

python-pipeline

Python data pipelines with modular architecture. Use for content workflows, batch jobs, or Google Sheets/Drive integration.

jamditis/claude-skills-journalism · 26 tokens

datarobot-setup

Sets up DataRobot for local development including Python SDK, dr-cli, Agent Assist, and all required dependencies. Use when the user has not yet worked with DataRobot on this machine, OR when any DataRobot task fails due to missing or invalid credentials. Covers first-time setup, re-authentication, and credential…

datarobot-oss/datarobot-agent-skills · 70 tokens

leiloeiro-edital-ranbot-ai

Analise e auditoria de editais de leilao judicial e extrajudicial. Riscos ocultos, clausulas perigosas, debitos, ocupante e classificacao da oportunidade.

ThomasMoreAI/legal-skills-open · 51 tokens

mloda-plugins

Guide an AI agent through building mloda (https://github.com/mloda-ai/mloda) plugins: FeatureGroup, ComputeFramework, and Extender classes. Use to check the mloda-registry index for an existing plugin before writing one, when writing or reviewing a FeatureGroup/ComputeFramework/Extender implementation, or when…

aiskillstore/marketplace · 85 tokens