Skip to content

Commit

Permalink
add polyval to polyfit see also (#5020)
Browse files Browse the repository at this point in the history
* add polyval to polyfit see also

* whatsnew

* link polyval to docs

* link polyval to docs
  • Loading branch information
aaronspring authored Mar 10, 2021
1 parent da0adc3 commit c195c26
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ Documentation
~~~~~~~~~~~~~
- New section on :ref:`add_a_backend` in the "Internals" chapter aimed to backend developers
(:issue:`4803`, :pull:`4810`). By `Aureliana Barghini <https://github.com/aurghs>`_.
- Add :py:meth:`Dataset.polyfit` and :py:meth:`DataArray.polyfit` under "See also" in
the docstrings of :py:meth:`Dataset.polyfit` and :py:meth:`DataArray.polyfit`
(:issue:`5016`, :pull:`5020`). By `Aaron Spring <https://github.com/aaronspring>`_.


Internal Changes
Expand Down
2 changes: 2 additions & 0 deletions xarray/core/dataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -3781,6 +3781,8 @@ def polyfit(
See Also
--------
numpy.polyfit
numpy.polyval
xarray.polyval
"""
return self._to_temp_dataset().polyfit(
dim, deg, skipna=skipna, rcond=rcond, w=w, full=full, cov=cov
Expand Down
2 changes: 2 additions & 0 deletions xarray/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -6399,6 +6399,8 @@ def polyfit(
See Also
--------
numpy.polyfit
numpy.polyval
xarray.polyval
"""
variables = {}
skipna_da = skipna
Expand Down

0 comments on commit c195c26

Please sign in to comment.