Spec-Zone.ru › Nushell

polars selector integer for expression

Select all integer columns.

Signature

> polars selector integer {flags}

Input/output types:

input output
any polars_selector

Examples

Select all integer columns

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

Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/polars_selector_integer.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API