dfr first
for dataframe> dfr first {flags} (rows)
rows
: starting from the front, the number of rows to returninput | output |
---|---|
any | any |
Return the first row of a dataframe
> [[ab]; [12] [34]] |dfr into-df|dfr first
╭───┬───┬───╮
│# │ a │ b │
├───┼───┼───┤
│0│1│2│
╰───┴───┴───╯
Return the first two rows of a dataframe
> [[ab]; [12] [34]] |dfr into-df|dfr first2
╭───┬───┬───╮
│# │ a │ b │
├───┼───┼───┤
│0│1│2│
│1│3│4│
╰───┴───┴───╯
Creates a first expression from a column
>dfr cola|dfr first
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_first.html