polars all-false
For dataframe.
Returns true if all values are false.
warning This command requires a plugin The
polars all-falsecommand resides in thepolarsplugin. To use this command, you must install and registernu_plugin_polars. See the Plugins chapter in the book for more information.
Command Type
plugin
Signature
> polars all-false {flags}
Input/output types:
| input | output |
|---|---|
| polars_dataframe | polars_dataframe |
| polars_lazyframe | polars_lazyframe |
Examples
Returns true if all values are false
> [false false false] | polars into-df | polars all-false
╭───┬───────────╮
│ # │ all_false │
├───┼───────────┤
│ 0 │ true │
╰───┴───────────╯
Checks the result from a comparison
> let s = ([5 6 2 10] | polars into-df);
let res = ($s > 9);
$res | polars all-false
╭───┬───────────╮
│ # │ all_false │
├───┼───────────┤
│ 0 │ false │
╰───┴───────────╯
Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.