xarray.DataArray.equals¶
-
DataArray.
equals
(other)¶ 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).