bigframes.pandas.DataFrame.equals#

DataFrame.equals(other:Series|DataFrame)bool[source]#

Test whether two objects contain the same elements.

This function allows two Series or DataFrames to be compared againsteach other to see if they have the same shape and elements. NaNs inthe same location are considered equal.

The row/column index do not need to have the same type, as longas the values are considered equal. Corresponding columns must be ofthe same dtype.

Parameters:

other (Series orDataFrame) – The other Series or DataFrame to be compared with the first.

Returns:

True if all elements are the same in both objects, Falseotherwise.

Return type:

bool

On this page

This Page