dfr melt for dataframe> dfr melt {flags} 
--columns, -c {table}: column names for melting--values, -v {table}: column names used as value columns--variable-name, -r {string}: optional name for variable column--value-name, -l {string}: optional name for value column| input | output | 
|---|---|
| any | any | 
melt dataframe
> [[abcd]; [x14a] [y25b] [z36c]] |dfr into-df|dfr melt-c [bc] -v [ad]
╭───┬───┬───┬──────────┬───────╮
│# │ b │ c │ variable │ value │
├───┼───┼───┼──────────┼───────┤
│0│1│4│a│x│
│1│2│5│a│y│
│2│3│6│a│z│
│3│1│4│d│a│
│4│2│5│d│b│
│5│3│6│d│c│
╰───┴───┴───┴──────────┴───────╯
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_melt.html