Skip to content

Commit

Permalink
Amended docstring to reflect the actual behaviour of Dataset.map (#6232)
Browse files Browse the repository at this point in the history
* Amended docstring to reflect the actual behaviour of Dataset.map

* Update
  • Loading branch information
lpilz committed Feb 23, 2022
1 parent b86a7c1 commit b760807
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xarray/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -5116,9 +5116,9 @@ def map(
to transform each DataArray `x` in this dataset into another
DataArray.
keep_attrs : bool, optional
If True, the dataset's attributes (`attrs`) will be copied from
the original object to the new one. If False, the new object will
be returned without attributes.
If True, both the dataset's and variables' attributes (`attrs`) will be
copied from the original objects to the new ones. If False, the new dataset
and variables will be returned without copying the attributes.
args : tuple, optional
Positional arguments passed on to `func`.
**kwargs : Any
Expand Down

0 comments on commit b760807

Please sign in to comment.