summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authormgunyho <marci.gunyho@gmail.com>2022-01-20 08:31:36 +0200
committermgunyho <marci.gunyho@gmail.com>2022-01-20 08:31:36 +0200
commit462768aed3df4270d73996b88906b989de1fa3d1 (patch)
treefd3efa754469119e9c51c4bcdbeac61d3e120792 /numpy/core/fromnumeric.py
parent19989c21b6b7a45da80b21d3abde485542ae4eb1 (diff)
downloadnumpy-462768aed3df4270d73996b88906b989de1fa3d1.tar.gz
DOC: fix formatting of mean example
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r--numpy/core/fromnumeric.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py
index f26f306fa..0ec4f7687 100644
--- a/numpy/core/fromnumeric.py
+++ b/numpy/core/fromnumeric.py
@@ -3408,6 +3408,7 @@ def mean(a, axis=None, dtype=None, out=None, keepdims=np._NoValue, *,
0.55000000074505806 # may vary
Specifying a where argument:
+
>>> a = np.array([[5, 9, 13], [14, 10, 12], [11, 15, 19]])
>>> np.mean(a)
12.0