diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2017-12-28 07:40:57 +0000 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-12-28 07:57:21 +0000 |
commit | e772a1a9bb9626490316e6c9ae8d57cd25cff33c (patch) | |
tree | 4d91ea15b1cf54602887547bd0b82da188b34ed7 /doc | |
parent | 7bb2d5a8f0219aa5acb5fda05929f1a0745a1883 (diff) | |
download | python-numpy-e772a1a9bb9626490316e6c9ae8d57cd25cff33c.tar.gz python-numpy-e772a1a9bb9626490316e6c9ae8d57cd25cff33c.tar.bz2 python-numpy-e772a1a9bb9626490316e6c9ae8d57cd25cff33c.zip |
ENH: Allow ptp to take an axis tuple and keepdims
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release/1.15.0-notes.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/release/1.15.0-notes.rst b/doc/release/1.15.0-notes.rst index 5dce7060d..16a44113c 100644 --- a/doc/release/1.15.0-notes.rst +++ b/doc/release/1.15.0-notes.rst @@ -85,6 +85,11 @@ passed explicitly, and are not yet computed automatically. though they are arrays of length 1. Previously, passing these was an error. As a result, ``np.ma.mr_`` now works correctly on the ``masked`` constant. +``np.ptp`` accepts a ``keepdims`` argument, and extended axis tuples +-------------------------------------------------------------------- +``np.ptp`` (peak-to-peak) can now work over multiple axes, just like `max` and +`min`. + ``MaskedArray.astype`` now is identical to ``ndarray.astype`` ------------------------------------------------------------- This means it takes all the same arguments, making more code written for |