polars selector boolean для выражения
Выбрать все столбцы с логическими значениями.
Сигнатура
> polars selector boolean {flags}
Типы входных и выходных данных:
| вход | выход |
|---|---|
| любой | polars_selector |
Примеры
Выбрать все столбцы с логическими значениями
> {
"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