# xarray.Variable.equals

#### Variable.equals(other, equiv=<function array_equiv>)[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/variable.py#L2121-L2138)

Return True if two Variables have the same dimensions and values.

Otherwise return False.

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

This method is necessary because v1 == v2 for Variables
does element-wise comparisons (like numpy.ndarrays).
