equals

UnitsAwareDataArray.equals(other: xarray.core.dataarray.DataArray) bool

True if two DataArrays have the same dimensions, coordinates and values; otherwise False.

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

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

See also

DataArray.broadcast_equals, DataArray.identical