# xarray.core.coordinates.DatasetCoordinates.merge

#### DatasetCoordinates.merge(other, , compat='minimal')[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/coordinates.py#L550-L592)

Merge two sets of coordinates to create a new Dataset

The method implements the logic used for joining coordinates in the
result of a binary operation performed on xarray objects:

- If two index coordinates conflict (are not equal), an exception is
  raised. You must align your data before passing it to this method.
- If an index coordinate and a non-index coordinate conflict, the non-
  index coordinate is dropped.
- If two non-index coordinates conflict, both are dropped.

* **Parameters:**
  * **other** ([dict-like](https://docs.python.org/3/glossary.html#term-mapping), *optional*) – A [`Coordinates`](xarray.Coordinates.html.md#xarray.Coordinates) object or any mapping that can be turned
    into coordinates.
  * **compat** (`{"identical", "equals", "broadcast_equals", "no_conflicts", "override", "minimal"}`, *default*: `"minimal"`) – Compatibility checks to use between coordinate variables.
* **Returns:**
  **merged** ([`Dataset`](xarray.Dataset.html.md#xarray.Dataset)) – A new Dataset with merged coordinates.
