Skip to main content

Csv Stats

Summarize a CSV file (row count, columns, numeric means)

Skill metadata

Namecsv-stats
Version1.0.0
Authorexample
Categorydata
Tagscsv, analysis

Verification

This skill is addressed by the hash of its contents. An agent fetches it by that address and rechecks every file before running anything, so a changed skill is a different address it was never approved to use.

Addresssha256:4e8cb35109ab6ae6069b6c984ebd52c659712905c83eaf7a0f662b1251e63d50
Files4
# fetch from distributed storage, verify, and use it
node agent/skill-agent.mjs --address sha256:4e8cb35109ab6ae6069b6c984ebd52c659712905c83eaf7a0f662b1251e63d50 --key <publisher-key>

Files

PathAddressBytes
SKILL.mdsha256:3b30dca7bd0773a8e4358bc3fbc7e7e7741de943aaef1522f7085c0c91938565683
examples/sample.csvsha256:dbe2f65ac4555a6794a3ff49136a58f3a8e94a7be6a95ba21dbf0cd0ddc1a6c272
references/format.mdsha256:3f2009496bd4c62fd7f879ab4de3917c44f6d6e75715ef0f6b8227b0feed1cc2181
scripts/stats.pysha256:3413eb46a557ffd63cb2c5cd85834cdb1447637357b7d9d6ab347b843b28d2e5799

Reference: full SKILL.md

Summarize a CSV

When to Use

The user has a CSV file and wants a quick structural summary: how many rows, what columns, and the mean of each numeric column.

Procedure

  1. Run scripts/stats.py <input.csv>.
  2. The script prints a JSON object with rows, columns, and numeric_means.
  3. Return that JSON to the user.

Verification

  • rows equals the number of data lines (excluding the header).
  • Every numeric column appears in numeric_means.