summaryrefslogtreecommitdiff
path: root/numpy/lib/shape_base.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2017-04-01 13:43:21 -0600
committerGitHub <noreply@github.com>2017-04-01 13:43:21 -0600
commitc93201acabd010bcd15464d058faa02da207a292 (patch)
tree46158c0c014835ce62bdb10d81e0cb3d62fd7454 /numpy/lib/shape_base.py
parentc3dd0e134b1c354322fc360a0c747b27c62db9c9 (diff)
parentf2b27fb90809bdf464e66b9f3be8037e9a72c0f7 (diff)
downloadnumpy-c93201acabd010bcd15464d058faa02da207a292.tar.gz
Merge pull request #8737 from eric-wieser/squeeze-expand-docs
DOC: Mention that expand_dims and squeeze are inverses
Diffstat (limited to 'numpy/lib/shape_base.py')
-rw-r--r--numpy/lib/shape_base.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py
index a0640143b..857c8c09f 100644
--- a/numpy/lib/shape_base.py
+++ b/numpy/lib/shape_base.py
@@ -255,6 +255,8 @@ def expand_dims(a, axis):
See Also
--------
+ squeeze : The inverse operation, removing singleton dimensions
+ reshape : Insert, remove, and combine dimensions, and resize existing ones
doc.indexing, atleast_1d, atleast_2d, atleast_3d
Examples