diff --git a/doc/whats-new.rst b/doc/whats-new.rst index cbafe4d5999..5826211923a 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -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 `_. +- 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 `_. Internal Changes diff --git a/xarray/core/dataarray.py b/xarray/core/dataarray.py index dd871eb21bc..5f944354901 100644 --- a/xarray/core/dataarray.py +++ b/xarray/core/dataarray.py @@ -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 diff --git a/xarray/core/dataset.py b/xarray/core/dataset.py index db45157e7c1..d76d136be8b 100644 --- a/xarray/core/dataset.py +++ b/xarray/core/dataset.py @@ -6399,6 +6399,8 @@ def polyfit( See Also -------- numpy.polyfit + numpy.polyval + xarray.polyval """ variables = {} skipna_da = skipna