diff options
author | Isaac Virshup <ivirshup@gmail.com> | 2019-08-27 12:32:52 +1000 |
---|---|---|
committer | Isaac Virshup <ivirshup@gmail.com> | 2019-08-27 12:39:32 +1000 |
commit | 8c0bb22cb5b0979defe11e4befd20f7b79f5da08 (patch) | |
tree | 941da3259784ec405479420d36118ea7627810ae /numpy/lib/nanfunctions.py | |
parent | d037f06c85bf15140084e537d12d6cf9c5cf4fa2 (diff) | |
download | numpy-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/lib/nanfunctions.py')
-rw-r--r-- | numpy/lib/nanfunctions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/nanfunctions.py b/numpy/lib/nanfunctions.py index 9a03d0b39..6cffab6ac 100644 --- a/numpy/lib/nanfunctions.py +++ b/numpy/lib/nanfunctions.py @@ -1443,7 +1443,7 @@ def nanvar(a, axis=None, dtype=None, out=None, ddof=0, keepdims=np._NoValue): the variance of the flattened array. 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 |