diff --git a/xarray/core/common.py b/xarray/core/common.py index e8c43e964aa..8f6d57e9f12 100644 --- a/xarray/core/common.py +++ b/xarray/core/common.py @@ -455,6 +455,7 @@ def assign_coords(self, coords=None, **coords_kwargs): lon_2 (lon) int64 300 289 0 1 Note that the same result can also be obtained with a dict e.g. + >>> _ = da.assign_coords({"lon_2": ('lon', lon_2)}) Notes