Spec-Zone.ru › Nushell

polars is-not-null for dataframe

Creates mask where value is not null.

Signature

> polars is-not-null {flags}

Input/output types:

input output
polars_expression polars_expression
polars_dataframe polars_dataframe
polars_lazyframe polars_lazyframe

Examples

Create mask where values are not null

> let s = ([5 6 0 8] | polars into-df);
    let res = ($s / $s);
    $res | polars is-not-null
╭───┬─────────────╮
│ # │ is_not_null │
├───┼─────────────┤
│ 0 │ true        │
│ 1 │ true        │
│ 2 │ false       │
│ 3 │ true        │
╰───┴─────────────╯

Creates a is not null expression from a column

> polars col a | polars is-not-null

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

Spec-Zone.ru

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