pandas.DataFrame.equals

pandas 3.1.1 · DataFrame · method

Check whether two objects have compatible shapes and the same contents, including missing values in the same locations.

Call syntax

DataFrame.equals(other)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
other Required
Positional or keyword
Series or DataFrame

Supply the second object or value used in the operation.

Returns

bool