summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2019-07-02 08:28:21 -0700
committerGitHub <noreply@github.com>2019-07-02 08:28:21 -0700
commite1739540cc9ef744e9b9ff7249a013be121a6d80 (patch)
tree1f6e76161d061a4f3ad81e596284f390ca048b52
parenta14a8cefdeb80552f0feecd65c8c5b6b869aa487 (diff)
parent0765fc4d219059c36e3575b6e1f25816fd304de8 (diff)
downloadnumpy-e1739540cc9ef744e9b9ff7249a013be121a6d80.tar.gz
Merge pull request #13884 from MSeifert04/add-missing-keepdims-param-doc
DOC: Add missing parameter description for keepdims in MaskedArray
-rw-r--r--numpy/ma/core.py12
1 files changed, 12 insertions, 0 deletions
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
-------