Skip to content

Commit 6a6404a

Browse files
Fix variables arg typo in Dataset.sortby() docstring (#8670)
* 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]>
1 parent db9e448 commit 6a6404a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/whats-new.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ Bug fixes
4040

4141
Documentation
4242
~~~~~~~~~~~~~
43-
43+
- Fix `variables` arg typo in `Dataset.sortby()` docstring
44+
(:issue:`8663`, :pull:`8670`)
45+
By `Tom Vo <https://github.com/tomvothecoder>`_.
4446

4547
Internal Changes
4648
~~~~~~~~~~~~~~~~

xarray/core/dataset.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7947,7 +7947,7 @@ def sortby(
79477947
79487948
Parameters
79497949
----------
7950-
kariables : Hashable, DataArray, sequence of Hashable or DataArray, or Callable
7950+
variables : Hashable, DataArray, sequence of Hashable or DataArray, or Callable
79517951
1D DataArray objects or name(s) of 1D variable(s) in coords whose values are
79527952
used to sort this array. If a callable, the callable is passed this object,
79537953
and the result is used as the value for cond.

0 commit comments

Comments
 (0)