Spec-Zone.ru › Polars

polars.DataFrame.equals

DataFrame.equals(
    other: DataFrame,
    *,
    null_equal: bool = True,
) → bool

Проверяет, равен ли DataFrame другому DataFrame.

Параметры:
other

DataFrame для сравнения.

null_equal

Считать null-значения равными.

См. также

polars.testing.assert_frame_equal

Примеры

>>> df1 = pl.DataFrame(
...     {
...         "foo": [1, 2, 3],
...         "bar": [6.0, 7.0, 8.0],
...         "ham": ["a", "b", "c"],
...     }
... )
>>> df2 = pl.DataFrame(
...     {
...         "foo": [3, 2, 1],
...         "bar": [8.0, 7.0, 6.0],
...         "ham": ["c", "b", "a"],
...     }
... )
>>> df1.equals(df1)
True
>>> df1.equals(df2)
False

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

Spec-Zone.ru

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