Skip to content

Commit 3fca020

Browse files
ilgastpre-commit-ci[bot]dcherian
authored
Update interpolate_na in dataset.py (#7974)
* Update interpolate_na in dataset.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update xarray/core/dataset.py --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Deepak Cherian <[email protected]>
1 parent 971be10 commit 3fca020

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

xarray/core/dataset.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6083,6 +6083,11 @@ def interpolate_na(
60836083
interpolated: Dataset
60846084
Filled in Dataset.
60856085
6086+
Warning
6087+
--------
6088+
When passing fill_value as a keyword argument with method="linear", it does not use
6089+
``numpy.interp`` but it uses ``scipy.interpolate.interp1d``, which provides the fill_value parameter.
6090+
60866091
See Also
60876092
--------
60886093
numpy.interp

0 commit comments

Comments
 (0)