summaryrefslogtreecommitdiff
path: root/numpy/core/ma.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/ma.py')
-rw-r--r--numpy/core/ma.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/ma.py b/numpy/core/ma.py
index 2e2d3f8ec..67335019f 100644
--- a/numpy/core/ma.py
+++ b/numpy/core/ma.py
@@ -1613,7 +1613,7 @@ def average (a, axis=None, weights=None, returned = 0):
If axis is None, average over the entire array
Inputs can be integer or floating types; result is of type float.
- If weights are given, result is sum(a*weights)/(sum(weights)*1.0)
+ If weights are given, result is sum(a*weights,axis=0)/(sum(weights,axis=0)*1.0)
weights must have a's shape or be the 1-d with length the size
of a in the given axis.