summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorIsaac Virshup <ivirshup@gmail.com>2019-08-27 12:32:52 +1000
committerIsaac Virshup <ivirshup@gmail.com>2019-08-27 12:39:32 +1000
commit8c0bb22cb5b0979defe11e4befd20f7b79f5da08 (patch)
tree941da3259784ec405479420d36118ea7627810ae /numpy/core
parentd037f06c85bf15140084e537d12d6cf9c5cf4fa2 (diff)
downloadnumpy-8c0bb22cb5b0979defe11e4befd20f7b79f5da08.tar.gz
DOC: Fixed dtype docs for var, nanvar.
Docs incorrectly stated that the default output dtype was float32 when input array is of an integer dtype. However: ```python np.var(np.random.randint(0, 100, 1000)).dtype == np.dtype("f8") ```
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/fromnumeric.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py
index 08f17aae4..c37dbc5df 100644
--- a/numpy/core/fromnumeric.py
+++ b/numpy/core/fromnumeric.py
@@ -3410,7 +3410,7 @@ def var(a, axis=None, dtype=None, out=None, ddof=0, keepdims=np._NoValue):
instead of a single axis or all the axes as before.
dtype : data-type, optional
Type to use in computing the variance. For arrays of integer type
- the default is `float32`; for arrays of float types it is the same as
+ the default is `float64`; for arrays of float types it is the same as
the array type.
out : ndarray, optional
Alternate output array in which to place the result. It must have