W3cubDocs

/Nushell

dfr value-counts for dataframe

Returns a dataframe with the counts for unique values in series.

Signature

> dfr value-counts {flags}

Input/output types:

input output
any any

Examples

Calculates value counts

> [555566] |dfr into-df|dfr value-counts
╭───┬───┬────────╮
# │ 0 │ counts │
├───┼───┼────────┤
054
162
╰───┴───┴────────╯

Tips: Dataframe commands were not shipped in the official binaries by default, you have to build it with --features=dataframe flag

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/dfr_value-counts.html