diff options
author | SabrinaSimao <sabrinass@al.insper.edu.br> | 2020-06-12 18:22:47 -0300 |
---|---|---|
committer | SabrinaSimao <sabrinass@al.insper.edu.br> | 2020-06-12 18:22:47 -0300 |
commit | dd5fbac3ce8bc1128dc7db2503df694f3cf1b51c (patch) | |
tree | ee11ce78a1e3c5b33e8c151dd44fff67ebe3134a /numpy | |
parent | f4889614194fc50dd48b0e56ede1c223b5202566 (diff) | |
download | numpy-dd5fbac3ce8bc1128dc7db2503df694f3cf1b51c.tar.gz |
DOC: changed the way the link is being used from transpose to ndarray.transpose
I feel like the `ndarray.transpose` has more details, and it's also called by `transpose`, so i changed the way the link between them was being used
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/_add_newdocs.py | 4 | ||||
-rw-r--r-- | numpy/core/fromnumeric.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/_add_newdocs.py b/numpy/core/_add_newdocs.py index a83037132..93be30b39 100644 --- a/numpy/core/_add_newdocs.py +++ b/numpy/core/_add_newdocs.py @@ -3998,8 +3998,6 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('transpose', Returns a view of the array with axes transposed. - Refer to `numpy.transpose` for full documentation. - For a 1-D array this has no effect, as a transposed vector is simply the same vector. To convert a 1-D array into a 2D column vector, an additional dimension must be added. `np.atleast2d(a).T` achieves this, as does @@ -4029,7 +4027,7 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('transpose', See Also -------- - ndarray.transpose : Method to reverse or permute the axes of an array. + transpose : Equivalent function ndarray.T : Array property returning the array transposed. ndarray.reshape : Give a new shape to an array without changing its data. diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index cbab9424b..8c24030f2 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -605,6 +605,8 @@ def transpose(a, axes=None): For an array a with two axes, transpose(a) gives the matrix transpose. + Refer to `numpy.ndarray.transpose` for full documentation. + Parameters ---------- a : array_like @@ -624,7 +626,7 @@ def transpose(a, axes=None): See Also -------- - ndarray.transpose : Method to reverse or permute the axes of an array. + ndarray.transpose : Equivalent method moveaxis argsort |