diff --git a/xarray/core/dataarray.py b/xarray/core/dataarray.py index 1699fbd36e2..d2ac37e0e23 100644 --- a/xarray/core/dataarray.py +++ b/xarray/core/dataarray.py @@ -2235,8 +2235,8 @@ def interp( New coordinate can be a scalar, array-like or DataArray. If DataArrays are passed as new coordinates, their dimensions are used for the broadcasting. Missing values are skipped. - method : "linear", "nearest", "zero", "slinear", "quadratic", "cubic", - "quintic", "polynomial", "pchip", "barycentric", "krogh", "akima", "makima" + method : { "linear", "nearest", "zero", "slinear", "quadratic", "cubic", \ + "quintic", "polynomial", "pchip", "barycentric", "krogh", "akima", "makima" } Interpolation method to use (see descriptions above). assume_sorted : bool, default: False If False, values of x can be in any order and they are sorted @@ -2390,8 +2390,8 @@ def interp_like( Object with an 'indexes' attribute giving a mapping from dimension names to an 1d array-like, which provides coordinates upon which to index the variables in this dataset. Missing values are skipped. - method : "linear", "nearest", "zero", "slinear", "quadratic", "cubic", - "quintic", "polynomial", "pchip", "barycentric", "krogh", "akima", "makima" + method : { "linear", "nearest", "zero", "slinear", "quadratic", "cubic", \ + "quintic", "polynomial", "pchip", "barycentric", "krogh", "akima", "makima" } Interpolation method to use (see descriptions above). assume_sorted : bool, default: False If False, values of coordinates that are interpolated over can be diff --git a/xarray/core/dataset.py b/xarray/core/dataset.py index 3193070b12b..d2ca11c518a 100644 --- a/xarray/core/dataset.py +++ b/xarray/core/dataset.py @@ -3903,8 +3903,8 @@ def interp( New coordinate can be a scalar, array-like or DataArray. If DataArrays are passed as new coordinates, their dimensions are used for the broadcasting. Missing values are skipped. - method : "linear", "nearest", "zero", "slinear", "quadratic", "cubic", - "quintic", "polynomial", "pchip", "barycentric", "krogh", "akima", "makima" + method : { "linear", "nearest", "zero", "slinear", "quadratic", "cubic", \ + "quintic", "polynomial", "pchip", "barycentric", "krogh", "akima", "makima" } Interpolation method to use (see descriptions above). assume_sorted : bool, default: False If False, values of coordinates that are interpolated over can be @@ -4195,8 +4195,8 @@ def interp_like( Object with an 'indexes' attribute giving a mapping from dimension names to an 1d array-like, which provides coordinates upon which to index the variables in this dataset. Missing values are skipped. - method : "linear", "nearest", "zero", "slinear", "quadratic", "cubic", - "quintic", "polynomial", "pchip", "barycentric", "krogh", "akima", "makima" + method : { "linear", "nearest", "zero", "slinear", "quadratic", "cubic", \ + "quintic", "polynomial", "pchip", "barycentric", "krogh", "akima", "makima" } Interpolation method to use (see descriptions above). assume_sorted : bool, default: False If False, values of coordinates that are interpolated over can be