polars col
for expression
Creates a named column expression.
This command requires a plugin
The polars col
command resides in the polars
plugin. To use this command, you must install and register nu_plugin_polars
. See the Plugins chapter in the book for more information.
Signature
> polars 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
> polars col a | polars into-nu
╭───────┬────────╮
│ expr │ column │
│ value │ a │
╰───────┴────────╯