Receber por email
← Voltar para o catálogo

csv-processor

Read a CSV file from disk, compute per-column min/mean/max for every numeric column, emit the result as JSON. Stdlib-only Python; no pandas, no numpy. Demonstrates the simplest possible "give me a file path, get back structured analysis" skill — a deliberate baseline for any skill that processes tabular data locally without an LLM in the loop.

19estrelas
Atualizado há 4 meses

Ver no GitHub ↗ Licença: Apache-2.0

Como adicionar

/plugin marketplace add ChronoAIProject/Ornn

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/csv-processor-chronoaiproject/svg)](https://www.skillteca.com.br/skills/csv-processor-chronoaiproject)

Skills relacionadas

Ver todas de Dados e Análise →

Alerta por categoria

Receba novas skills de Dados e Análise toda segunda

1 email curto, só com as skills novas de Dados e Análise. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

csv-processor

A deterministic, network-free skill — the easiest case. Useful as a control when debugging the agent ↔ skill plumbing: if this fails, the failure is in the runner, not the skill.

Contract

Input (single CLI argument):

python src/main.py /path/to/data.csv

The script reads argv[1] as a filesystem path. CSV must have a header row.

Output (stdout, JSON):

{
  "rowCount": 1234,
  "columns": {
    "price": { "min": 1.23, "mean": 42.0, "max": 999.99, "count": 1234 },
    "quantity": { "min": 0, "mean": 7.5, "max": 100, "count": 1230 }
  }
}

Only numeric columns appear under columns. count is the number of cells that parsed successfully (numeric); non-numeric / blank cells are skipped.

Errors — written to stderr as {"error": "..."} and exit code 1.

Run locally

cd examples/csv-processor
python src/main.py sample.csv

A sample.csv is bundled so the example runs out of the box.

Adapt this

  • Different aggregations — add median, p95, stddev; same shape, more keys per column.
  • Streaming — for huge files, replace the in-memory accumulation with a running-mean update; one extra variable per column, same output shape.
  • Source other than disk — accept a URL or stdin instead of argv[1]. The aggregation core doesn't care.
Compartilhar X LinkedIn