nushell/docs/commands/columns.md

429 B

title layout version
columns command 0.59.1

Show the columns in the input.

Signature

> columns

Examples

Get the columns from the table

> [[name,age,grade]; [bill,20,a]] | columns

Get the first column from the table

> [[name,age,grade]; [bill,20,a]] | columns | first

Get the second column from the table

> [[name,age,grade]; [bill,20,a]] | columns | select 1