summaryrefslogtreecommitdiff
path: root/numpy/lib/shape_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/shape_base.py')
-rw-r--r--numpy/lib/shape_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py
index df0e9876d..925329cdf 100644
--- a/numpy/lib/shape_base.py
+++ b/numpy/lib/shape_base.py
@@ -25,7 +25,7 @@ def apply_along_axis(func1d,axis,arr,*args):
indlist = range(nd)
indlist.remove(axis)
i[axis] = slice(None,None)
- outshape = asarray(arr.shape).take(indlist)
+ outshape = asarray(arr.shape).take(indlist,0)
i.put(ind, indlist)
res = func1d(arr[tuple(i.tolist())],*args)
# if res is a number, then we have a smaller output array