From e772a1a9bb9626490316e6c9ae8d57cd25cff33c Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Thu, 28 Dec 2017 07:40:57 +0000 Subject: ENH: Allow ptp to take an axis tuple and keepdims --- doc/release/1.15.0-notes.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') 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 -- cgit v1.2.3