Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ Documentation
- Migrated from nbsphinx/jupyter-execute to myst-nb (:issue:`7924`, :pull:`11456`).
By `Nick Hodgskin <https://github.com/VeckoTheGecko>`_.

- Fixed the ``kwargs`` entry in the :py:meth:`Dataset.curvefit` and
:py:meth:`DataArray.curvefit` docstrings: both take a ``kwargs`` dict, not
``**kwargs`` (:issue:`6891`).
By `Advit Arora <https://github.com/advitrocks9>`_.


Internal Changes
~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion xarray/core/dataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -6563,7 +6563,7 @@ def curvefit(
If 'raise', any errors from the `scipy.optimize_curve_fit` optimization will
raise an exception. If 'ignore', the coefficients and covariances for the
coordinates where the fitting failed will be NaN.
**kwargs : optional
kwargs : optional
Additional keyword arguments to passed to scipy curve_fit.

Returns
Expand Down
2 changes: 1 addition & 1 deletion xarray/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -9904,7 +9904,7 @@ def curvefit(
If 'raise', any errors from the `scipy.optimize_curve_fit` optimization will
raise an exception. If 'ignore', the coefficients and covariances for the
coordinates where the fitting failed will be NaN.
**kwargs : optional
kwargs : optional
Additional keyword arguments to passed to scipy curve_fit.

Returns
Expand Down
Loading