data-science

data-science is a skill for Claude Code from ludo-technologies/python-best-practices. It costs 98 tokens per session (1,543 once invoked), scanned A, original, MIT.

A Python guide for writing NumPy and pandas code, tools commonly used to work with numerical arrays and tables of data.

In plain words
What is it for?
Use it when writing or reviewing data transformations, vectorized calculations, DataFrame updates, schema checks, reproducible randomness, and numeric tests.
Why use it?
It helps prevent slow calculations, accidental data changes, unclear data types, and unreliable numeric tests.

Skill for Claude Code

Written for Claude Code: paths in frontmatter.

Good fit Use it when writing or reviewing data transformations, vectorized calculations, DataFrame updates, schema checks, reproducible randomness, and numeric tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ludo-technologies/python-best-practices/data-science
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 ludo-technologies/python-best-practices --skill data-science
Clone the repo
git clone --depth 1 https://github.com/ludo-technologies/python-best-practices

Made for: Claude Code.

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 data-science

README.md
[![agentmods](https://agentmods.dev/badge/skills/ludo-technologies/python-best-practices/data-science/github.svg)](https://agentmods.dev/skills/ludo-technologies/python-best-practices/data-science)
Your own site
<a href="https://agentmods.dev/skills/ludo-technologies/python-best-practices/data-science"><img src="https://agentmods.dev/badge/skills/ludo-technologies/python-best-practices/data-science/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 data-science

Your own site · 80×15
<a href="https://agentmods.dev/skills/ludo-technologies/python-best-practices/data-science"><img src="https://agentmods.dev/badge/skills/ludo-technologies/python-best-practices/data-science.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,543 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00098 $0.01543
Opus 5.5 $0.00039 $0.00617
Sonnet 5.5 $0.00020 $0.00309
Haiku 4.5 $0.00010 $0.00154

Measured 1mo ago against content hash 9e411100539b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

data-science 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 1mo ago.

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/data-science/SKILL.md · 173 lines

How it starts

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

Python Data Science

NumPy and pandas best practices for data science and ML code. Designed for AI agents and LLMs to write fast, correct, and reproducible numeric code.

Numeric code has idioms that differ from general Python: loops are the anti-pattern, data structures are immutable buffers, and dtypes are a design decision. Where a rule here overlaps a coding-standards rule, this skill takes precedence for array and DataFrame code.

Categories

Vectorization [CRITICAL]

Keep computation in compiled NumPy/pandas code instead of the Python interpreter.

Rule Description
vec-no-python-loops Vectorize instead of Python loops, iterrows, and row-wise apply (10-1000x faster)
vec-no-incremental-growth Build arrays and DataFrames once, not incrementally (O(n) vs O(n²))

Indexing & Mutation [CRITICAL]

Write to DataFrames in ways that are correct under Copy-on-Write and visible in the data flow.

Rule Description
mut-loc-not-chained Assign with .loc, never with chained indexing
mut-no-inplace Avoid inplace=True

Data Types [HIGH]

Make dtypes an explicit decision rather than an inference result.

Rule Description
dtype-explicit-io Specify dtypes when loading data
dtype-categorical Use category dtype for low-cardinality strings
dtype-numpy-explicit Choose NumPy dtypes explicitly

Schema Validation [HIGH]

Validate tabular data where it enters the system.

Rule Description
schema-pandera Validate DataFrames at boundaries with pandera

Reproducibility [HIGH]

Make experiments repeatable and free of hidden global state.

Rule Description
repro-default-rng Use an explicit Generator for randomness

Read the full file on GitHub · 173 lines

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. 1mo ago First seen · 173 lines · 98 tokens per session scan A 9e411100539b

Subscribe to this mod's changes

data-science is a skill published in the GitHub repository ludo-technologies/python-best-practices (30 stars, last pushed 1mo ago), licensed MIT. It adds 98 tokens to every session and 1,543 once invoked, about $0.0004 per session on Opus 5.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-09-04.

Related

Other skills, from other repositories

agent-platform-tuning

Agent Platform Model Tuning. Use when you need to fine-tune open models or Gemini models using Agent Platform infrastructure. Don't use for model training outside Agent Platform, model deployment to endpoints (use agent-platform-deploy), or managing serving endpoints (use agent-platform-endpoint-management).

google/skills · 64 tokens

agent-platform-model-registry

Agent Platform Model Registry Management. Use when you need to upload, list, describe, update, or delete machine learning models (and their versions) in the Agent Platform Model Registry. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform models.

google/skills · 60 tokens

agent-platform-prompt-management

Manages and orchestrates prompts in Agent Platform. Use when you need to create, list, retrieve, version, or delete managed prompts in Agent Platform. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform prompts.

google/skills · 55 tokens

agent-platform-rag-engine-management

Manage and query Agent Platform RAG Engine Corpora and retrieve grounded contexts using the Google GenAI SDK. Use when listing RAG corpora or files, inspecting a corpus, retrieving contexts, or generating content grounded in a RAG corpus. Do not use for standard database queries (use SQL/Spanner skills), Google…

google/skills · 85 tokens

agent-platform-endpoint-management

Manages Agent Platform serving endpoints. Use when you need to create, list, describe, update, or delete serving endpoints for model deployment on Agent Platform. Also use when troubleshooting endpoint permission, quota, or resource busy errors. Don't use for deploying models to endpoints or for running model…

google/skills · 64 tokens

gke-inference

Deploys and optimizes AI/ML inference workloads on GKE, using GPUs, TPUs, and model servers. Use when deploying GKE inference servers, configuring GKE GPU resources for inference, or deploying LLMs on GKE. Don't use for migrating existing AI workloads to GKE (use google-cloud-solution-guided-gke-ai-migration), GKE RAG…

google/skills · 119 tokens