Spec-Zone.ru › Polars

polars.Series.eq_missing

Series.eq_missing(
    other: Any,
) → Series | Expr

Метод, эквивалентный оператору равенства series == other, где None == None.

Он отличается от стандартного eq, в котором значения null распространяются.

Параметры:
other

Литерал или значение выражения для сравнения.

См. также

ne_missing
eq

Примеры

>>> s1 = pl.Series("a", [333, 200, None])
>>> s2 = pl.Series("a", [100, 200, None])
>>> s1.eq(s2)
shape: (3,)
Series: 'a' [bool]
[
    false
    true
    null
]
>>> s1.eq_missing(s2)
shape: (3,)
Series: 'a' [bool]
[
    false
    true
    true
]

© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.eq_missing.html

Spec-Zone.ru

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