From 0765fc4d219059c36e3575b6e1f25816fd304de8 Mon Sep 17 00:00:00 2001 From: MSeifert04 Date: Mon, 1 Jul 2019 22:10:06 +0200 Subject: DOC: Add missing parameter description for keepdims in MaskedArray The methods max, min, ptp were missing the parameter in the documentation. --- numpy/ma/core.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/numpy/ma/core.py b/numpy/ma/core.py index 93eb4d87a..bd050c042 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -5616,6 +5616,10 @@ class MaskedArray(ndarray): fill_value : {var}, optional Value used to fill in the masked values. If None, use the output of `minimum_fill_value`. + keepdims : bool, optional + If this is set to True, the axes which are reduced are left + in the result as dimensions with size one. With this option, + the result will broadcast correctly against the array. Returns ------- @@ -5746,6 +5750,10 @@ class MaskedArray(ndarray): fill_value : {var}, optional Value used to fill in the masked values. If None, use the output of maximum_fill_value(). + keepdims : bool, optional + If this is set to True, the axes which are reduced are left + in the result as dimensions with size one. With this option, + the result will broadcast correctly against the array. Returns ------- @@ -5810,6 +5818,10 @@ class MaskedArray(ndarray): but the type will be cast if necessary. fill_value : {var}, optional Value used to fill in the masked values. + keepdims : bool, optional + If this is set to True, the axes which are reduced are left + in the result as dimensions with size one. With this option, + the result will broadcast correctly against the array. Returns ------- -- cgit v1.2.1