summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorYousef Hamza <jo.adam.93@gmail.com>2015-03-04 22:30:34 +0200
committerYousef Hamza <jo.adam.93@gmail.com>2015-03-04 22:30:34 +0200
commitee195f28cf8e82908e4039ba876dc3e3f2b6a2f3 (patch)
treef0940b487f4754ea00e849a1bfe7d8842c92c64d /numpy/core/fromnumeric.py
parent03506a9e72d85d596021e11e9b39c5a0fd1f2eba (diff)
downloadnumpy-ee195f28cf8e82908e4039ba876dc3e3f2b6a2f3.tar.gz
DOC: Adding note to transpose()
Adding a note to clear that 1D array transpose returns the same as the original array
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r--numpy/core/fromnumeric.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py
index c518309a0..b0c141178 100644
--- a/numpy/core/fromnumeric.py
+++ b/numpy/core/fromnumeric.py
@@ -526,6 +526,8 @@ def transpose(a, axes=None):
Use `transpose(a, argsort(axes))` to invert the transposition of tensors
when using the `axes` keyword argument.
+ Transposing a 1-D array returns an unchanged view of the original array.
+
Examples
--------
>>> x = np.arange(4).reshape((2,2))