Skip to content

Commit a2a448d

Browse files
shoyerdcherian
authored andcommitted
DOC: remove example using Dataset.T (#2572)
* DOC: remove example using Dataset.T * Update reshaping.rst * Update reshaping.rst
1 parent ecbf91f commit a2a448d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/reshaping.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@ Reordering dimensions
1818
---------------------
1919

2020
To reorder dimensions on a :py:class:`~xarray.DataArray` or across all variables
21-
on a :py:class:`~xarray.Dataset`, use :py:meth:`~xarray.DataArray.transpose` or the
22-
``.T`` property:
21+
on a :py:class:`~xarray.Dataset`, use :py:meth:`~xarray.DataArray.transpose`:
2322

2423
.. ipython:: python
2524
2625
ds = xr.Dataset({'foo': (('x', 'y', 'z'), [[[42]]]), 'bar': (('y', 'z'), [[24]])})
2726
ds.transpose('y', 'z', 'x')
28-
ds.T
27+
ds.transpose() # reverses all dimensions
2928
3029
Expand and squeeze dimensions
3130
-----------------------------

0 commit comments

Comments
 (0)