Skip to content

Commit c195c26

Browse files
authored
add polyval to polyfit see also (#5020)
* add polyval to polyfit see also * whatsnew * link polyval to docs * link polyval to docs
1 parent da0adc3 commit c195c26

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

doc/whats-new.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ Documentation
5555
~~~~~~~~~~~~~
5656
- New section on :ref:`add_a_backend` in the "Internals" chapter aimed to backend developers
5757
(:issue:`4803`, :pull:`4810`). By `Aureliana Barghini <https://github.com/aurghs>`_.
58+
- Add :py:meth:`Dataset.polyfit` and :py:meth:`DataArray.polyfit` under "See also" in
59+
the docstrings of :py:meth:`Dataset.polyfit` and :py:meth:`DataArray.polyfit`
60+
(:issue:`5016`, :pull:`5020`). By `Aaron Spring <https://github.com/aaronspring>`_.
5861

5962

6063
Internal Changes

xarray/core/dataarray.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3781,6 +3781,8 @@ def polyfit(
37813781
See Also
37823782
--------
37833783
numpy.polyfit
3784+
numpy.polyval
3785+
xarray.polyval
37843786
"""
37853787
return self._to_temp_dataset().polyfit(
37863788
dim, deg, skipna=skipna, rcond=rcond, w=w, full=full, cov=cov

xarray/core/dataset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6399,6 +6399,8 @@ def polyfit(
63996399
See Also
64006400
--------
64016401
numpy.polyfit
6402+
numpy.polyval
6403+
xarray.polyval
64026404
"""
64036405
variables = {}
64046406
skipna_da = skipna

0 commit comments

Comments
 (0)