dfr into-nu
for dataframe> dfr into-nu {flags}
--rows, -n {number}
: number of rows to be shown--tail, -t
: shows tail rowsinput | output |
---|---|
any | any |
Shows head rows from dataframe
> [[ab]; [12] [34]] |dfr into-df|dfr into-nu
╭───┬───┬───╮
│# │ a │ b │
├───┼───┼───┤
│0│1│2│
│1│3│4│
╰───┴───┴───╯
Shows tail rows from dataframe
> [[ab]; [12] [56] [34]] |dfr into-df|dfr into-nu-t-n1
╭───┬───┬───╮
│# │ a │ b │
├───┼───┼───┤
│2│3│4│
╰───┴───┴───╯
Convert a col expression into a nushell value
>dfr cola|dfr into-nu
╭───────┬────────╮
│expr│column│
│value│a│
╰───────┴────────╯
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_into-nu.html