Skip to content

Commit

Permalink
Fix variables arg typo in Dataset.sortby() docstring (#8670)
Browse files Browse the repository at this point in the history
* Fix `variables` arg typo in `Dataset.sortby()` docstring

* Add change to `whats-new.rst`

* Remove whitespace in `whats-new.rst`

* Update doc/whats-new.rst

Co-authored-by: Maximilian Roos <[email protected]>

---------

Co-authored-by: Maximilian Roos <[email protected]>
  • Loading branch information
tomvothecoder and max-sixty authored Jan 26, 2024
1 parent db9e448 commit 6a6404a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ Bug fixes

Documentation
~~~~~~~~~~~~~

- Fix `variables` arg typo in `Dataset.sortby()` docstring
(:issue:`8663`, :pull:`8670`)
By `Tom Vo <https://github.com/tomvothecoder>`_.

Internal Changes
~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion xarray/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -7947,7 +7947,7 @@ def sortby(
Parameters
----------
kariables : Hashable, DataArray, sequence of Hashable or DataArray, or Callable
variables : Hashable, DataArray, sequence of Hashable or DataArray, or Callable
1D DataArray objects or name(s) of 1D variable(s) in coords whose values are
used to sort this array. If a callable, the callable is passed this object,
and the result is used as the value for cond.
Expand Down

0 comments on commit 6a6404a

Please sign in to comment.