You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lnav/src/prql/stats.prql

6 lines
132 B
Plaintext

let count_by = func column rel <relation> -> <relation> (
rel
group {column} (aggregate {total = count this})
sort {-total}
)