dfr into-df
for dataframe> dfr into-df {flags}
input | output |
---|---|
any | any |
Takes a dictionary and creates a dataframe
> [[ab];[12] [34]] |dfr into-df
╭───┬───┬───╮
│# │ a │ b │
├───┼───┼───┤
│0│1│2│
│1│3│4│
╰───┴───┴───╯
Takes a list of tables and creates a dataframe
> [[12a] [34b] [56c]] |dfr into-df
╭───┬───┬───┬───╮
│# │ 0 │ 1 │ 2 │
├───┼───┼───┼───┤
│0│1│2│a│
│1│3│4│b│
│2│5│6│c│
╰───┴───┴───┴───╯
Takes a list and creates a dataframe
> [abc] |dfr into-df
╭───┬───╮
│# │ 0 │
├───┼───┤
│0│a│
│1│b│
│2│c│
╰───┴───╯
Takes a list of booleans and creates a dataframe
> [truetruefalse] |dfr into-df
╭───┬───────╮
│# │ 0 │
├───┼───────┤
│0│true│
│1│true│
│2│false│
╰───┴───────╯
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-df.html