Skip to content

Add stats command for numeric field summaries - #8

Merged
rmkr-dev merged 1 commit into
mainfrom
feat/stats-aggregate
Oct 10, 2026
Merged

rmkr-dev merged 1 commit into
mainfrom
feat/stats-aggregate

Conversation

@rmkr-dev

Copy link
Copy Markdown
Owner

Adds stats FIELD, which prints count, sum, min, max, and avg for a numeric top-level field. Works on a list root or on group-by output (one summary per group). Numeric strings count, so CSV input works directly; non-numeric and missing values are skipped.

  • stats_rows library helper, exported from the package
  • CLI command with JSON/YAML/CSV/NDJSON input
  • Tests for mixed values, empty input, grouped input, and CLI errors
  • README section and command table entry
  • Version bump to 0.6.0

@rmkr-dev
rmkr-dev merged commit c781a7c into main Oct 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant