diff options
author | Lisa Schwetlick <mail@lisaschwetlick.de> | 2020-10-09 21:35:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-09 12:35:47 -0700 |
commit | 156cd054e007b05d4ac4829e10a369d19dd2b0b1 (patch) | |
tree | 8e9181a9b5b1156b9f5c3cc9c3d4a6d2876b8df5 /doc/release | |
parent | 84a4fcb5af5f9c056e82893223944820af35df18 (diff) | |
download | numpy-156cd054e007b05d4ac4829e10a369d19dd2b0b1.tar.gz |
ENH: add dtype option to cov and corrcoef (#17456)
Adds a keyword-only dtype parameter to correlate and coerrcoef to allow
user to specify the dtype of the output.
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
Diffstat (limited to 'doc/release')
-rw-r--r-- | doc/release/upcoming_changes/17456.new_feature.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/17456.new_feature.rst b/doc/release/upcoming_changes/17456.new_feature.rst new file mode 100644 index 000000000..7ab014e77 --- /dev/null +++ b/doc/release/upcoming_changes/17456.new_feature.rst @@ -0,0 +1,5 @@ +``dtype`` option for `cov` and `corrcoef` +---------------------------------------------------- +The ``dtype`` option is now available for `numpy.cov` and `numpy.corrcoef`. +It specifies which data-type the returned result should have. +By default the functions still return a `numpy.float64` result. |