polars get

For dataframe.

Creates dataframe with the selected columns.

warning This command requires a plugin The polars get 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.

Command Type

plugin

Signature

> polars get {flags} ...rest

Parameters

  • ...rest: Column names to sort dataframe.

Input/output types:

input output
polars_dataframe polars_dataframe
polars_lazyframe polars_lazyframe

Examples

Returns the selected column

> [[a b]; [1 2] [3 4]] | polars into-df | polars get a
╭───┬───╮
│ # │ a │
├───┼───┤
│ 0 │ 1 │
│ 1 │ 3 │
╰───┴───╯

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.