From f4889614194fc50dd48b0e56ede1c223b5202566 Mon Sep 17 00:00:00 2001 From: SabrinaSimao Date: Fri, 12 Jun 2020 14:13:23 -0300 Subject: unify the docs for np.transpose and ndarray.transpose --- numpy/core/fromnumeric.py | 1 + 1 file changed, 1 insertion(+) (limited to 'numpy/core/fromnumeric.py') diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index 2b88ccedf..cbab9424b 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -624,6 +624,7 @@ def transpose(a, axes=None): See Also -------- + ndarray.transpose : Method to reverse or permute the axes of an array. moveaxis argsort -- cgit v1.2.1 From dd5fbac3ce8bc1128dc7db2503df694f3cf1b51c Mon Sep 17 00:00:00 2001 From: SabrinaSimao Date: Fri, 12 Jun 2020 18:22:47 -0300 Subject: 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 --- numpy/core/fromnumeric.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'numpy/core/fromnumeric.py') 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 -- cgit v1.2.1