polars not for dataframe
Inverts boolean mask.
Signature
> polars not {flags}
Input/output types:
| input | output |
|---|---|
| polars_dataframe | polars_dataframe |
| polars_lazyframe | polars_lazyframe |
Examples
Inverts boolean mask
> [true false true] | polars into-df | polars not ╭───┬───────╮ │ # │ 0 │ ├───┼───────┤ │ 0 │ false │ │ 1 │ true │ │ 2 │ false │ ╰───┴───────╯
Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/polars_not.html