xarray.Dataset.apply

Dataset.apply(func, keep_attrs=None, args=(), **kwargs)

Backward compatible implementation of map

See also

Dataset.map()