# xarray.Dataset.reindex_like

#### Dataset.reindex_like(other, method=None, tolerance=None, copy=True, fill_value=<NA>)[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/dataset.py#L3484-L3552)

Conform this object onto the indexes of another object, for indexes which the
objects share. Missing values are filled with `fill_value`. The default fill
value is NaN.

* **Parameters:**
  * **other** ([`Dataset`](xarray.Dataset.html.md#xarray.Dataset) or [`DataArray`](xarray.DataArray.html.md#xarray.DataArray)) – Object with an ‘indexes’ attribute giving a mapping from dimension
    names to pandas.Index objects, which provides coordinates upon
    which to index the variables in this dataset. The indexes on this
    other object need not be the same as the indexes on this
    dataset. Any mismatched index values will be filled in with
    NaN, and any mismatched dimension names will simply be ignored.
  * **method** (`{None, "nearest", "pad", "ffill", "backfill", "bfill", None}`, *optional*) – Method to use for filling index values from other not found in this
    dataset:
    - None (default): don’t fill gaps
    - “pad” / “ffill”: propagate last valid index value forward
    - “backfill” / “bfill”: propagate next valid index value backward
    - “nearest”: use nearest valid index value
  * **tolerance** (`float | Iterable[float] | str | None`, *default*: [`None`](https://docs.python.org/3/builtins/constants.html#None)) – Maximum distance between original and new labels for inexact
    matches. The values of the index at the matching locations must
    satisfy the equation `abs(index[indexer] - target) <= tolerance`.
    Tolerance may be a scalar value, which applies the same tolerance
    to all values, or list-like, which applies variable tolerance per
    element. List-like must be the same size as the index and its dtype
    must exactly match the index’s type.
  * **copy** ([`bool`](https://docs.python.org/3/builtins/functions.html#bool), *default*: [`True`](https://docs.python.org/3/builtins/constants.html#True)) – If `copy=True`, data in the return value is always copied. If
    `copy=False` and reindexing is unnecessary, or can be performed
    with only slice operations, then the output may share memory with
    the input. In either case, a new xarray object is always returned.
  * **fill_value** ([scalar](../user-guide/terminology.html.md#term-scalar) or [dict-like](https://docs.python.org/3/glossary.html#term-mapping), *optional*) – Value to use for newly missing values. If a dict-like maps
    variable names to fill values.
* **Returns:**
  **reindexed** ([`Dataset`](xarray.Dataset.html.md#xarray.Dataset)) – Another dataset, with this dataset’s data but coordinates from the
  other object.

#### SEE ALSO
[`Dataset.reindex`](xarray.Dataset.reindex.html.md#xarray.Dataset.reindex), [`DataArray.reindex_like`](xarray.DataArray.reindex_like.html.md#xarray.DataArray.reindex_like), [`align`](xarray.align.html.md#xarray.align)
