From c01ca87c03aaaad55e6c2bda0ced2fb308a18524 Mon Sep 17 00:00:00 2001 From: lumbric Date: Wed, 17 Apr 2019 21:03:19 +0200 Subject: [PATCH] Fix minor typos in docstrings See also pull-request #2860. --- xarray/core/dataarray.py | 4 ++-- xarray/core/dataset.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/xarray/core/dataarray.py b/xarray/core/dataarray.py index 82e20d123dd..39e9fc048e3 100644 --- a/xarray/core/dataarray.py +++ b/xarray/core/dataarray.py @@ -902,7 +902,7 @@ def reindex_like(self, other, method=None, tolerance=None, copy=True): * nearest: use nearest valid index value (requires pandas>=0.16) tolerance : optional Maximum distance between original and new labels for inexact - matches. The values of the index at the matching locations most + matches. The values of the index at the matching locations must satisfy the equation ``abs(index[indexer] - target) <= tolerance``. Requires pandas>=0.17. copy : bool, optional @@ -954,7 +954,7 @@ def reindex(self, indexers=None, method=None, tolerance=None, copy=True, * nearest: use nearest valid index value (requires pandas>=0.16) tolerance : optional Maximum distance between original and new labels for inexact - matches. The values of the index at the matching locations most + matches. The values of the index at the matching locations must satisfy the equation ``abs(index[indexer] - target) <= tolerance``. **indexers_kwarg : {dim: indexer, ...}, optional The keyword arguments form of ``indexers``. diff --git a/xarray/core/dataset.py b/xarray/core/dataset.py index 1a866bf7781..6eb8065973d 100644 --- a/xarray/core/dataset.py +++ b/xarray/core/dataset.py @@ -1701,7 +1701,7 @@ def sel(self, indexers=None, method=None, tolerance=None, drop=False, * nearest: use nearest valid index value tolerance : optional Maximum distance between original and new labels for inexact - matches. The values of the index at the matching locations most + matches. The values of the index at the matching locations must satisfy the equation ``abs(index[indexer] - target) <= tolerance``. Requires pandas>=0.17. drop : bool, optional @@ -1901,7 +1901,7 @@ def sel_points(self, dim='points', method=None, tolerance=None, * nearest: use nearest valid index value tolerance : optional Maximum distance between original and new labels for inexact - matches. The values of the index at the matching locations most + matches. The values of the index at the matching locations must satisfy the equation ``abs(index[indexer] - target) <= tolerance``. Requires pandas>=0.17. **indexers : {dim: indexer, ...} @@ -1955,7 +1955,7 @@ def reindex_like(self, other, method=None, tolerance=None, copy=True): * nearest: use nearest valid index value (requires pandas>=0.16) tolerance : optional Maximum distance between original and new labels for inexact - matches. The values of the index at the matching locations most + matches. The values of the index at the matching locations must satisfy the equation ``abs(index[indexer] - target) <= tolerance``. Requires pandas>=0.17. copy : bool, optional @@ -2002,7 +2002,7 @@ def reindex(self, indexers=None, method=None, tolerance=None, copy=True, * nearest: use nearest valid index value (requires pandas>=0.16) tolerance : optional Maximum distance between original and new labels for inexact - matches. The values of the index at the matching locations most + matches. The values of the index at the matching locations must satisfy the equation ``abs(index[indexer] - target) <= tolerance``. Requires pandas>=0.17. copy : bool, optional