Spec-Zone.ru › Nushell

polars all-true for dataframe

Returns true if all values are true.

Signature

> polars all-true {flags}

Input/output types:

input output
polars_dataframe polars_dataframe
polars_lazyframe polars_lazyframe

Examples

Returns true if all values are true

> [true true true] | polars into-df | polars all-true
╭───┬──────────╮
│ # │ all_true │
├───┼──────────┤
│ 0 │ true     │
╰───┴──────────╯

Checks the result from a comparison

> let s = ([5 6 2 8] | polars into-df);
    let res = ($s > 9);
    $res | polars all-true
╭───┬──────────╮
│ # │ all_true │
├───┼──────────┤
│ 0 │ false    │
╰───┴──────────╯

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

Spec-Zone.ru

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