polars selector unsigned-integer

For expression.

Select all unsigned integer columns.

warning This command requires a plugin The polars selector unsigned-integer 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 selector unsigned-integer {flags}

Input/output types:

input output
any polars_selector

Examples

Select all unsigned integer columns

> {
        "foo": ["x", "y"],
        "bar": [123, 200],
        "baz": [2.0, 5.5],
    } |
    polars into-df --as-columns -s {foo: str, bar: u8, baz: f32}|
    polars select (polars selector unsigned-integer) |
    polars collect
╭───┬─────╮
│ # │ bar │
├───┼─────┤
│ 0 │ 123 │
│ 1 │ 200 │
╰───┴─────╯

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