Skip to content

Compare two DataFrames

Source code

Description

Check if two DataFrames are equal.

Usage

<DataFrame>$equals(other)

Arguments

other DataFrame to compare with.

Value

A logical value

Examples

library("polars")

dat1 = as_polars_df(iris)
dat2 = as_polars_df(iris)
dat3 = as_polars_df(mtcars)
dat1$equals(dat2)
#> [1] TRUE
dat1$equals(dat3)
#> [1] FALSE