Spec-Zone.ru › Polars

polars.Series.equals

Series.equals(
    other: Series,
    *,
    check_dtypes: bool = False,
    check_names: bool = False,
    null_equal: bool = True,
) → bool

Check whether the Series is equal to another Series.

Changed in version 0.20.31: The strict parameter was renamed check_dtypes.

Parameters:
other

Series to compare with.

check_dtypes

Require data types to match.

check_names

Require names to match.

null_equal

Consider null values as equal.

See also

polars.testing.assert_series_equal

Examples

>>> s1 = pl.Series("a", [1, 2, 3])
>>> s2 = pl.Series("b", [4, 5, 6])
>>> s1.equals(s1)
True
>>> s1.equals(s2)
False

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

Spec-Zone.ru

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