W3cubDocs

/Nushell

dfr all-true for dataframe

Returns true if all values are true.

Signature

> dfr all-true {flags}

Input/output types:

input output
any any

Examples

Returns true if all values are true

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

Checks the result from a comparison

>lets= ([5628] |dfr into-df);
letres= ($s>9);
$res|dfr all-true
╭───┬──────────╮
# │ all_true │
├───┼──────────┤
0false
╰───┴──────────╯

Tips: Dataframe commands were not shipped in the official binaries by default, you have to build it with --features=dataframe flag

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