W3cubDocs

/Nushell

dfr col for expression

Creates a named column expression.

Signature

> dfr col {flags} (column name)

Parameters

  • column name: Name of column to be used

Input/output types:

input output
any any

Examples

Creates a named column expression and converts it to a nu object

>dfr cola|dfr into-nu
╭───────┬────────╮
exprcolumn
valuea
╰───────┴────────╯

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_col.html