Spec-Zone.ru › Nushell

polars selector numeric для выражения

Выбрать все числовые столбцы.

Сигнатура

> polars selector numeric {flags}

Типы ввода/вывода:

ввод вывод
any polars_selector

Примеры

Выбрать все числовые столбцы

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

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

Spec-Zone.ru

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