Spec-Zone.ru › Nushell

polars selector boolean for expression

Select all boolean columns.

Signature

> polars selector boolean {flags}

Input/output types:

input output
any polars_selector

Examples

Select all boolean columns

> {
    "name": ["Alice", "Bob"],
    "active": [true, false],
    "score": [1, 2],
} |
polars into-df --as-columns |
polars select (polars selector boolean) |
polars collect
╭───┬────────╮
│ # │ active │
├───┼────────┤
│ 0 │ true   │
│ 1 │ false  │
╰───┴────────╯

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

Spec-Zone.ru

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