diff --git a/doc/data-structures.rst b/doc/data-structures.rst index f7b34036a03..d5567f4863e 100644 --- a/doc/data-structures.rst +++ b/doc/data-structures.rst @@ -411,7 +411,7 @@ Any variables using that dimension are dropped: As an alternate to dictionary-like modifications, you can use :py:meth:`~xarray.Dataset.assign` and :py:meth:`~xarray.Dataset.assign_coords`. -These methods return a new dataset with additional (or replaced) or values: +These methods return a new dataset with additional (or replaced) values: .. ipython:: python @@ -420,7 +420,7 @@ These methods return a new dataset with additional (or replaced) or values: There is also the :py:meth:`~xarray.Dataset.pipe` method that allows you to use a method call with an external function (e.g., ``ds.pipe(func)``) instead of simply calling it (e.g., ``func(ds)``). This allows you to write pipelines for -transforming you data (using "method chaining") instead of writing hard to +transforming your data (using "method chaining") instead of writing hard to follow nested function calls: .. ipython:: python diff --git a/doc/terminology.rst b/doc/terminology.rst index 4ee56190d5f..d1265e4da9d 100644 --- a/doc/terminology.rst +++ b/doc/terminology.rst @@ -15,7 +15,7 @@ Terminology ---- -**Variable:** A `NetCDF-like variable `_ consisting of dimensions, data, and attributes which describe a single array. The main functional difference between variables and numpy arrays is that numerical operations on variables implement array broadcasting by dimension name. Each ``DataArray`` has an underlying variable that can be accessed via ``arr.variable``. However, a variable is not fully described outside of either a ``Dataset`` or a ``DataArray``. +**Variable:** A `NetCDF-like variable `_ consisting of dimensions, data, and attributes which describe a single array. The main functional difference between variables and numpy arrays is that numerical operations on variables implement array broadcasting by dimension name. Each ``DataArray`` has an underlying variable that can be accessed via ``arr.variable``. However, a variable is not fully described outside of either a ``Dataset`` or a ``DataArray``. .. note:: @@ -39,4 +39,4 @@ Terminology ---- -**Index:** An *index* is a data structure optimized for efficient selecting and slicing of an associated array. Xarray creates indexes for dimension coordinates so that operations along dimensions are fast, while non-dimension coordinates are not indexed. Under the hood, indexes are implemented as :py:class:`pandas.Index` objects. The index associated with dimension name ``x`` can be retrieved by ``arr.indexes[x]``. By construction, ``len(arr.dims) == len(arr.indexes)`` \ No newline at end of file +**Index:** An *index* is a data structure optimized for efficient selecting and slicing of an associated array. Xarray creates indexes for dimension coordinates so that operations along dimensions are fast, while non-dimension coordinates are not indexed. Under the hood, indexes are implemented as :py:class:`pandas.Index` objects. The index associated with dimension name ``x`` can be retrieved by ``arr.indexes[x]``. By construction, ``len(arr.dims) == len(arr.indexes)``