/data-ml:pyarrow-python [PyArrow task, code, schema, error, or data boundary]from data-ml
Writes, reviews, debugs, tests, or optimizes Python code using PyArrow arrays, schemas, Tables, RecordBatches, compute kernels, Dataset scans, Parquet, and Arrow IPC. Trigger on schema drift, null semantics, chunking, batch streaming, predicate pushdown, conversion, and memory ownership.
Ships in data-ml. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Produce schema-explicit columnar code whose logical object, batch boundary, null behavior, memory lifetime, and materialization point are deliberate.
Use this skill when the implementation directly uses pyarrow or must expose an
Arrow-compatible boundary. Do not introduce PyArrow merely to perform a small
Python-list or pandas transformation. Keep storage-format questions in scope
only when PyArrow reads or writes them. Arrow Flight servers, Acero internals,
and non-Python implementations require their own guidance.
| Object | Meaning | Use it for |
|---|---|---|
DataType / Field / Schema | Immutable type and named-field contracts, including nullability and metadata. | Pinning a boundary before constructing or scanning data. |
Scalar | One typed value, possibly null. | Kernel arguments and scalar results. |
Array | One contiguous typed column backed by buffers. | A single physical column segment. |
ChunkedArray | One logical column made of zero or more same-typed arrays. | Table columns and multi-source results; chunk count is not row count. |
RecordBatch | Equal-length arrays under one schema. | Bounded transport or processing batches. |
Table | A logical table whose columns may be chunked. | Materialized tabular results that fit the required memory boundary. |
RecordBatchReader | A schema plus a consumable stream of batches. | Streaming interchange when the consumer can process batches once. |
Dataset | A logical collection of fragments with a unified schema. | Discovering and querying multi-file or partitioned data. |
Scanner | A dataset scan with projection, filter, and batching options bound. | Deferred dataset execution and bounded batch iteration. |
Arrays and schemas are immutable. A Table is materialized but may be
physically chunked; combine_chunks() can allocate and is not routine cleanup.
A Dataset describes sources, while a Scanner describes the read. Calling
to_table() materializes all selected rows; to_batches() preserves a batch
boundary. Read the object and memory model when
chunking, buffers, ownership, dictionaries, nested types, or zero-copy claims
matter.
Array, RecordBatch, Table, RecordBatchReader, Dataset, or
Scanner from that contract; do not default every job to Table.pyarrow.compute kernels for Arrow data. Do not convert to Python rows
or pandas solely to perform a supported kernel operation.| Required result | Use | Critical condition |
|---|---|---|
| One typed column | pa.array(..., type=...) | Conversion and null policy are explicit. |
| One bounded set of equal-length columns | pa.record_batch(..., schema=...) | All arrays conform to the same schema and length. |
| One logical materialized table | pa.table(..., schema=...) | Total selected result fits the boundary. |
| Consumable batches with a common schema | RecordBatchReader | The consumer accepts a one-pass stream. |
| Multi-file discovery and pruning | pyarrow.dataset.dataset | Format, filesystem, partitioning, and schema are known or inspected. |
| Deferred filtered/projected scan | dataset.scanner(...) | Use dataset expressions such as ds.field, not eager masks. |
| Elementwise, vector, aggregate, or selection work | pyarrow.compute | Choose kernel null semantics and checked/safe behavior deliberately. |
| Portable Arrow stream/file serialization | pyarrow.ipc | Choose stream for sequential batches, file for random-access footer metadata. |
| Analytical columnar storage | Parquet APIs or Dataset writer | Schema, partition layout, row groups, overwrite policy, and reader compatibility are explicit. |
Read the operation map before choosing construction, compute, dataset, serialization, or conversion APIs.
from collections.abc import Iterator
from pathlib import Path
import pyarrow as pa
import pyarrow.dataset as ds
ORDER_SCHEMA = pa.schema(
[
pa.field("order_id", pa.uint64(), nullable=False),
pa.field("country", pa.string(), nullable=False),
pa.field("amount", pa.decimal128(18, 2), nullable=True),
]
)
def scan_orders(root: Path, country: str) -> Iterator[pa.RecordBatch]:
dataset = ds.dataset(
root,
format="parquet",
schema=ORDER_SCHEMA,
partitioning="hive",
)
scanner = dataset.scanner(
columns=["order_id", "country", "amount"],
filter=ds.field("country") == country,
batch_size=65_536,
)
yield from scanner.to_batches()
This returns bounded batches rather than concatenating the whole dataset. The explicit schema prevents empty or heterogeneous fragments from silently changing the boundary. Whether the filter is pruned by partitions/statistics or evaluated after reading depends on the fragments and expression; verify a performance claim instead of inferring it from the code.
nullable=False validates constructed values. PyArrow table
construction can attach a non-nullable field to an array that still contains
nulls. Build typed arrays, reject a nonzero null_count for required fields,
then construct the batch or table under the exact schema.NaN are distinct. Choose kernel options explicitly
when either affects filtering, aggregation, or equality.Table, and call
combine_chunks() only for an API that requires contiguous buffers or after
measurement justifies the allocation.Expression objects for scan filters and projections. A Python
function or eager Boolean array cannot provide file/row-group pruning.to_table() loads the selected result; use to_batches() or a
RecordBatchReader when total size is not proven safe.Conversions to pandas, NumPy, or Python objects can allocate, change nullable representations, or lose nested/dictionary metadata. State the consumer and test round trips only for properties the contract requires. For Parquet or IPC, test the persisted schema and representative values after reopening the artifact; an in-memory pre-write assertion is insufficient. Run the installed-API inspector, read version and API grounding, and use testing Arrow boundaries.
Do not declare completion until the public object type and consumption model match the caller; schema names, order, types, nullability, metadata requirements, and time-zone/decimal semantics are asserted; empty, null, multi-chunk, and multi-batch cases pass; dataset projection/filtering occurs before materialization where required; conversions and writes are reopened or round-tripped; and every copy, allocation, ordering, and pushdown claim is measured or qualified. Report skipped checks and their consequence.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub skillmds/skillmd --plugin data-ml28 skills in this plugin
/adpRedpanda's Agentic Data Plane: governance infrastructure for building, running, and governing AI agents and MCP servers, plus a proxying AI Gateway for LLM providers, operated via `rpk ai` and the ADP API. Use when creating or managing AI agents (managed or self-managed) via `rpk ai agent` or `AgentRegistryService`; configuring MCP servers (remote or managed catalog, code mode, auth); setting up LLM providers or querying models via `rpk ai llm`/`rpk ai model` or the AI Gateway proxy; or configuring budgets, guardrails, or Cedar access-control policies through the governance APIs. Also covers reading agent transcripts and spending insights, and wiring OAuth clients or providers to the aigw Authorization Server. For the separate rpk cloud mcp control-plane MCP server, see `/redpanda:rpk-cloud`./ads-mathCalculate and model paid-media CPA, CPL, CPC, CPM, ROAS, MER, break-even targets, contribution margin, LTV:CAC, impression-share opportunity, budgets, forecasts, and experiment economics. Use for PPC math, ad calculator, break-even analysis, ROAS calculator, CPA calculator, budget forecast, LTV CAC, or MER./agentic-kaggle-skillKaggle-first end-to-end competition workflow for scored submissions. Use when Codex must run Kaggle or competitive ML workflows through scored submission, including code competitions, validation, metrics, policy-safe public notebook/discussion intel, tabular/text/image modeling, tuning, ensembling/stacking, proactive multi-notebook architectures, producer notebooks that train models and export private Kaggle artifact datasets, downstream consumer notebooks, Kaggle GPU offload, kagglehub access, hidden-test debugging, and public score retrieval./agent-recallPersistent compounding memory for AI agents. 5 default MCP tools: session_start, session_end, remember, recall, check. Full surface (18 tools) available with --full flag. Two-verb model: inhale (session_start) and exhale (session_end). Correction-first memory with decision trail tracking, watch_for warnings, palace rooms with salience scoring, cross-project insight matching, same-day journal merging, ambient recall hooks. Local markdown only. Zero cloud, zero telemetry, Obsidian-compatible. Optional Supabase backend: when configured via `ar setup supabase`, recall() uses pgvector cosine similarity on OpenAI/Voyage embeddings instead of keyword search — same API, semantic understanding. Gracefully degrades to local search if not configured./BMW-design-analysisBMW's corporate site — distinct from BMW M's motorsport-bombastic variant, this is a measured and settled corporate-automotive interface. On a light (cream-tinted white) canvas, BMW corporate blue (#1c69d4) carries every primary CTA; dark navy hero bands frame model photography. BMW Type Next Latin sets the entire hierarchy on two weights — heavy 700 display and Light 300 body. Configuration and reservation flows ride a card-based 4-up grid, where each card holds a model render, a name, and a "Learn More" link./bpmn-generatorEnterprise BPMN 2.0 diagram generator — converts natural language process descriptions into OMG-compliant BPMN 2.0 XML files and SVG previews via a 4-phase pipeline: Intent Extraction (LLM → JSON Logic-Core) → Validation (deadlock detection, structural soundness) → ElkJS Auto-Layout → BPMN XML + SVG output. Supports: multi-pool collaborations, message flows, boundary events (timer/error/signal), loop/multi-instance markers, data objects, all gateway types with correct gatewayDirection, and all BPMN 2.0 task types. Use this skill whenever the user wants to create, generate, or model a BPMN diagram, process flow, or workflow — even if they say "draw a process", "model this workflow", "make a BPMN for...", "create a Prozessmodell", "visualize this process", or describe a business process in natural language. Also use for editing or extending existing BPMN Logic-Core JSON.
Other plugins' skills for the same job