Skip to content

Commit 134db2d

Browse files
committed
docstring, whatsnew
1 parent d7cac81 commit 134db2d

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

doc/whats-new.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ New Features
3636
By `Justus Magin <https://github.com/keewis>`_.
3737
- :py:meth:`Dataset.groupby` and :py:meth:`DataArray.groupby` now raise a
3838
`TypeError` on multiple string arguments. Receiving multiple string arguments
39-
often means a user is attempting to pass multiple dimensions as seeparate
40-
argument and should instead pass a list.
39+
often means a user is attempting to pass multiple dimensions as separate
40+
arguments and should instead pass a single list of dimensions.
4141
(:pull:`3802`)
4242
By `Maximilian Roos <https://github.com/max-sixty>`_
4343
- The new ``Dataset._repr_html_`` and ``DataArray._repr_html_`` (introduced
4444
in 0.14.1) is now on by default. To disable, use
4545
``xarray.set_options(display_style="text")``.
4646
By `Julia Signell <https://github.com/jsignell>`_.
4747
- An ellipsis (``...``) is now supported in the ``dims`` argument of
48-
:py:meth:`Dataset.stack` and :py:meth:`DataArray.stack` to mean all
48+
:py:meth:`Dataset.stack` and :py:meth:`DataArray.stack`, meaning all
4949
dimensions, similar to its meaning in :py:meth:`DataArray.transpose`
5050
(:pull:`3826`)
5151
By `Maximilian Roos <https://github.com/max-sixty>`_

xarray/core/dataarray.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,8 @@ def stack(
17051705
----------
17061706
dimensions : Mapping of the form new_name=(dim1, dim2, ...)
17071707
Names of new dimensions, and the existing dimensions that they
1708-
replace.
1708+
replace. Passing a list with an ellipsis (`[...]`) will stack over all
1709+
dimensions.
17091710
**dimensions_kwargs:
17101711
The keyword arguments form of ``dimensions``.
17111712
One of dimensions or dimensions_kwargs must be provided.

xarray/core/dataset.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3279,7 +3279,8 @@ def stack(
32793279
----------
32803280
dimensions : Mapping of the form new_name=(dim1, dim2, ...)
32813281
Names of new dimensions, and the existing dimensions that they
3282-
replace.
3282+
replace. Passing a list with an ellipsis (`[...]`) will stack over all
3283+
dimensions.
32833284
**dimensions_kwargs:
32843285
The keyword arguments form of ``dimensions``.
32853286
One of dimensions or dimensions_kwargs must be provided.

0 commit comments

Comments
 (0)