dfr as for expression

Creates an alias expression.

Signature

> dfr as (Alias name)

Parameters

  • Alias name: Alias name for the expression

Input/output types:

inputoutput
anyany

Examples

Creates and alias expression

> dfr col a | dfr as new_a | dfr into-nu
╭───────┬────────────────────╮
│       │ ╭───────┬────────╮ │
│ expr  │ │ exprcolumn │ │
│       │ │ value │ a      │ │
│       │ ╰───────┴────────╯ │
│ alias │ new_a              │
╰───────┴────────────────────╯

Tips: Dataframe commands were not shipped in the official binaries by default, you have to build it with --features=dataframe flag