Skip to content

Commit b760807

Browse files
authored
Amended docstring to reflect the actual behaviour of Dataset.map (#6232)
* Amended docstring to reflect the actual behaviour of Dataset.map * Update
1 parent b86a7c1 commit b760807

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xarray/core/dataset.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -5116,9 +5116,9 @@ def map(
51165116
to transform each DataArray `x` in this dataset into another
51175117
DataArray.
51185118
keep_attrs : bool, optional
5119-
If True, the dataset's attributes (`attrs`) will be copied from
5120-
the original object to the new one. If False, the new object will
5121-
be returned without attributes.
5119+
If True, both the dataset's and variables' attributes (`attrs`) will be
5120+
copied from the original objects to the new ones. If False, the new dataset
5121+
and variables will be returned without copying the attributes.
51225122
args : tuple, optional
51235123
Positional arguments passed on to `func`.
51245124
**kwargs : Any

0 commit comments

Comments
 (0)