nushell/docs/commands/group-by.md
Justin Ma c0a1d18e3d
update #4455, regenerate commands' docs and update make_docs script (#4586)
* feat: update #4455, regenerate commands' docs

* chore: update make_docs script
2022-02-21 11:26:00 -06:00

389 B

title layout version
group-by command 0.59.0

Create a new table grouped.

Signature

> group-by (grouper)

Parameters

  • grouper: the grouper value to use

Examples

group items by column named "type"

> ls | group-by type

you can also group by raw values by leaving out the argument

> echo ['1' '3' '1' '3' '2' '1' '1'] | group-by