polars.DataFrame.equals
-
Проверяет, равен ли DataFrame другому DataFrame.
- Параметры:
-
- other
-
DataFrame для сравнения.
- null_equal
-
Считать null-значения равными.
См. также
Примеры
>>> 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
DataFrame.equals(
other: DataFrame,
*,
null_equal: bool = True,
) → bool
© 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