summaryrefslogtreecommitdiff
path: root/numpy/lib/shape_base.py
diff options
context:
space:
mode:
authorHidehiro NAGAOKA <kuinige@gmail.com>2017-11-28 17:18:58 +0900
committerEric Wieser <wieser.eric@gmail.com>2017-11-28 00:18:58 -0800
commitc08d2647240555e730da7580374a61d8547a932e (patch)
treefeb72def4fe837b04b92f3bb391cb38e2cdf4823 /numpy/lib/shape_base.py
parentce140e8d5c28f1f057db1102cf78263e48f86d61 (diff)
downloadnumpy-c08d2647240555e730da7580374a61d8547a932e.tar.gz
DOC: Add missing np. prefix to expand_dims docs (#10109)
Diffstat (limited to 'numpy/lib/shape_base.py')
-rw-r--r--numpy/lib/shape_base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py
index 0e4f25046..41ef28ef3 100644
--- a/numpy/lib/shape_base.py
+++ b/numpy/lib/shape_base.py
@@ -297,7 +297,7 @@ def expand_dims(a, axis):
>>> y.shape
(1, 2)
- >>> y = np.expand_dims(x, axis=1) # Equivalent to x[:,newaxis]
+ >>> y = np.expand_dims(x, axis=1) # Equivalent to x[:,np.newaxis]
>>> y
array([[1],
[2]])
@@ -435,8 +435,8 @@ def array_split(ary, indices_or_sections, axis=0):
Please refer to the ``split`` documentation. The only difference
between these functions is that ``array_split`` allows
`indices_or_sections` to be an integer that does *not* equally
- divide the axis. For an array of length l that should be split
- into n sections, it returns l % n sub-arrays of size l//n + 1
+ divide the axis. For an array of length l that should be split
+ into n sections, it returns l % n sub-arrays of size l//n + 1
and the rest of size l//n.
See Also