diff options
author | Yousef Hamza <jo.adam.93@gmail.com> | 2015-03-04 22:30:34 +0200 |
---|---|---|
committer | Yousef Hamza <jo.adam.93@gmail.com> | 2015-03-04 22:30:34 +0200 |
commit | ee195f28cf8e82908e4039ba876dc3e3f2b6a2f3 (patch) | |
tree | f0940b487f4754ea00e849a1bfe7d8842c92c64d /numpy/core/fromnumeric.py | |
parent | 03506a9e72d85d596021e11e9b39c5a0fd1f2eba (diff) | |
download | numpy-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.py | 2 |
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)) |