1
0
mirror of https://github.com/nushell/nushell.git synced 2025-03-22 11:37:10 +01:00
nushell/docs/commands/dfr_melt.md
Justin Ma c0a1d18e3d
update , regenerate commands' docs and update make_docs script ()
* feat: update , regenerate commands' docs

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

561 B

title layout version
dfr melt command 0.59.0

Unpivot a DataFrame from wide to long format

Signature

> dfr melt --columns --values --variable-name --value-name

Parameters

  • --columns {table}: column names for melting
  • --values {table}: column names used as value columns
  • --variable-name {string}: optional name for variable column
  • --value-name {string}: optional name for value column

Examples

melt dataframe

> [[a b c d]; [x 1 4 a] [y 2 5 b] [z 3 6 c]] | dfr to-df | dfr melt -c [b c] -v [a d]