xarray.Variable.broadcast_equals

Variable.broadcast_equals(other, equiv=<function array_equiv>)

True if two Variables have the values after being broadcast against each other; otherwise False.

Variables can still be equal (like pandas objects) if they have NaN values in the same locations.