Skip to content

Commit d7b4f7c

Browse files
author
dcherian
committed
fix transpose docstring. Closes pydata#2576
1 parent 75ca7f2 commit d7b4f7c

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

xarray/core/dataarray.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,8 +1385,9 @@ def transpose(self, *dims):
13851385
13861386
Notes
13871387
-----
1388-
Although this operation returns a view of this array's data, it is
1389-
not lazy -- the data will be fully loaded.
1388+
This operation returns a view of this array's data. It is
1389+
lazy for dask-backed DataArrays but not for numpy-backed DataArrays
1390+
-- the data will be fully loaded.
13901391
13911392
See Also
13921393
--------

xarray/core/dataset.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2817,8 +2817,9 @@ def transpose(self, *dims):
28172817
28182818
Notes
28192819
-----
2820-
Although this operation returns a view of each array's data, it
2821-
is not lazy -- the data will be fully loaded into memory.
2820+
This operation returns a view of each array's data. It is
2821+
lazy for dask-backed DataArrays but not for numpy-backed DataArrays
2822+
-- the data will be fully loaded into memory.
28222823
28232824
See Also
28242825
--------

xarray/core/variable.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,8 +1133,8 @@ def transpose(self, *dims):
11331133
11341134
Notes
11351135
-----
1136-
Although this operation returns a view of this variable's data, it is
1137-
not lazy -- the data will be fully loaded.
1136+
This operation returns a view of this variable's data. It is
1137+
lazy for dask-backed Variables but not for numpy-backed Variables.
11381138
11391139
See Also
11401140
--------

0 commit comments

Comments
 (0)