summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Fuglede Jørgensen <s@fuglede.dk>2017-03-25 17:26:27 +0100
committerGitHub <noreply@github.com>2017-03-25 17:26:27 +0100
commit9e6e74cf3fd7e1daf59b67dfe341ab6d8e51338d (patch)
tree9b16a4a51be5ed4f11fc3a0fe929fd09f6e0790d
parent96c9ae8911c74c2ab8f22e2c2b28167c668bc67e (diff)
downloadnumpy-9e6e74cf3fd7e1daf59b67dfe341ab6d8e51338d.tar.gz
DOC: Spell out note for `hstack`
This adds to the documentation on `hstack` the note from `vstack` about the dimensionality requirement.
-rw-r--r--numpy/core/shape_base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/shape_base.py b/numpy/core/shape_base.py
index 32b3d4591..d7fb0dfb3 100644
--- a/numpy/core/shape_base.py
+++ b/numpy/core/shape_base.py
@@ -265,7 +265,8 @@ def hstack(tup):
Notes
-----
- Equivalent to ``np.concatenate(tup, axis=1)``
+ Equivalent to ``np.concatenate(tup, axis=1)`` if `tup` contains arrays that
+ are at least 2-dimensional.
Examples
--------