diff --git a/doc/get-help/howdoi.rst b/doc/get-help/howdoi.rst index c6ddb48cba2..7c7d057ca3d 100644 --- a/doc/get-help/howdoi.rst +++ b/doc/get-help/howdoi.rst @@ -69,7 +69,7 @@ How do I ... - ``obj.dt.month`` for example where ``obj`` is a :py:class:`~xarray.DataArray` containing ``datetime64`` or ``cftime`` values. See :ref:`dt_accessor` for more. * - round off time values to a specified frequency - ``obj.dt.ceil``, ``obj.dt.floor``, ``obj.dt.round``. See :ref:`dt_accessor` for more. - * - make a mask that is ``True`` where an object contains any of the values in a array + * - make a mask that is ``True`` where an object contains any of the values in an array - :py:meth:`Dataset.isin`, :py:meth:`DataArray.isin` * - Index using a boolean mask - :py:meth:`Dataset.query`, :py:meth:`DataArray.query`, :py:meth:`Dataset.where`, :py:meth:`DataArray.where` diff --git a/xarray/core/common.py b/xarray/core/common.py index dae03b8e1f1..6181aa6a8c1 100644 --- a/xarray/core/common.py +++ b/xarray/core/common.py @@ -2084,7 +2084,7 @@ def is_np_timedelta_like(dtype: DTypeLike) -> bool: def _contains_cftime_datetimes(array: Any) -> bool: - """Check if a array inside a Variable contains cftime.datetime objects""" + """Check if an array inside a Variable contains cftime.datetime objects""" if cftime is None: return False diff --git a/xarray/core/duck_array_ops.py b/xarray/core/duck_array_ops.py index 48dc3b7627a..9c4b2892877 100644 --- a/xarray/core/duck_array_ops.py +++ b/xarray/core/duck_array_ops.py @@ -268,7 +268,7 @@ def asarray(data, xp=np, dtype=None): def as_shared_dtype(scalars_or_arrays, xp=None): - """Cast a arrays to a shared dtype using xarray's type promotion rules.""" + """Cast arrays to a shared dtype using xarray's type promotion rules.""" if any(is_extension_array_dtype(x) for x in scalars_or_arrays): extension_array_types = [ x.dtype for x in scalars_or_arrays if is_extension_array_dtype(x)