Spec-Zone.ru › Nushell

polars selector float for expression

Select all float columns.

Signature

> polars selector float {flags}

Input/output types:

input output
any polars_selector

Examples

Select all float columns

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

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

Spec-Zone.ru

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