Skip to content

v0.9.1 - count + sort

Choose a tag to compare

@Kenzy-Zero Kenzy-Zero released this 23 Jul 08:18
· 15 commits to main since this release

Two no-SQL verbs: count + sort

count - value-counts / group-by, no SQL:

  • kenze count sales.csv city --top 10 - the top 10 groups by count
  • kenze count sales.csv city --distinct user_id - unique users per city
  • kenze count sales.csv city category - group by more than one column
  • in the shell too: count city
  • pairs with report: kenze count data.csv city --top 10 -o c.csv then kenze report c.csv -o out.pdf = a counts PDF with zero SQL

sort - order rows, a real pipeline step:

  • kenze sort sales.csv --by revenue --desc --top 10 -o top.csv
  • stacks in the shell: load ... -> sort revenue desc -> head 10 -> report out.pdf
  • sort + head = top N