dfr value-counts
for dataframe
Returns a dataframe with the counts for unique values in series.
WARNING
Dataframe commands were not shipped in the official binaries by default, you have to build it with --features=dataframe
flag
Signature
> dfr value-counts {flags}
Input/output types:
input | output |
---|---|
any | any |
Examples
Calculates value counts
> [5 5 5 5 6 6] | dfr into-df | dfr value-counts
╭───┬───┬───────╮
│ # │ 0 │ count │
├───┼───┼───────┤
│ 0 │ 5 │ 4 │
│ 1 │ 6 │ 2 │
╰───┴───┴───────╯