diff --git a/doc/user-guide/reshaping.rst b/doc/user-guide/reshaping.rst index be10684ec29..d486cd945e4 100644 --- a/doc/user-guide/reshaping.rst +++ b/doc/user-guide/reshaping.rst @@ -179,7 +179,7 @@ arrays as inputs. For datasets with only one variable, we only need ``stack`` and ``unstack``, but combining multiple variables in a :py:class:`xarray.Dataset` is more complicated. If the variables in the dataset have matching numbers of dimensions, we can call -:py:meth:`~xarray.Dataset.to_dataarray` and then stack along the the new coordinate. +:py:meth:`~xarray.Dataset.to_dataarray` and then stack along the new coordinate. But :py:meth:`~xarray.Dataset.to_dataarray` will broadcast the dataarrays together, which will effectively tile the lower dimensional variable along the missing dimensions. The method :py:meth:`xarray.Dataset.to_stacked_array` allows diff --git a/doc/whats-new.rst b/doc/whats-new.rst index aa72a49cc54..d865c3d66b3 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -41,6 +41,7 @@ Bug Fixes Documentation ~~~~~~~~~~~~~ +- Fix a typo in ``xarray/doc/user-guide/reshaping.rst`` (:pull:`11186`). - Fix a typo in ``xarray/core/dataarray.py`` (:pull:`11185`). By `Yaocheng Chen `_.