Skip to content

Commit 3f7cc2d

Browse files
DOC: link DataArray.expand_dims to Dataset.expand_dims (#6841)
* DOC: link DataArray.expand_dims to Dataset.expand_dims * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * DOC: link dataset.expand_dims to DataArray.expand_dims * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 5a45051 commit 3f7cc2d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

xarray/core/dataarray.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2140,6 +2140,10 @@ def expand_dims(
21402140
-------
21412141
expanded : DataArray
21422142
This object, but with additional dimension(s).
2143+
2144+
See Also
2145+
--------
2146+
Dataset.expand_dims
21432147
"""
21442148
if isinstance(dim, int):
21452149
raise TypeError("dim should be Hashable or sequence/mapping of Hashables")

xarray/core/dataset.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3829,6 +3829,10 @@ def expand_dims(
38293829
-------
38303830
expanded : Dataset
38313831
This object, but with additional dimension(s).
3832+
3833+
See Also
3834+
--------
3835+
DataArray.expand_dims
38323836
"""
38333837
if dim is None:
38343838
pass

0 commit comments

Comments
 (0)