diff options
author | Warren Weckesser <warren.weckesser@gmail.com> | 2020-03-31 17:12:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-31 16:12:05 -0500 |
commit | 170d1bbf566937452fd9bf14a84a69c9edb43277 (patch) | |
tree | 508e2054122450ab651d4f26e0deb5408729073b /doc | |
parent | f01b4e54a4b46a84a5a79b03bd2bd2f21b190f12 (diff) | |
download | numpy-170d1bbf566937452fd9bf14a84a69c9edb43277.tar.gz |
ENH: Add keepdims argument to count_nonzero (gh-15870)
Enables the keepdims argument (kwarg only) for count nonzero, since it is a
reduce like operation.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release/upcoming_changes/15870.new_feature.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/15870.new_feature.rst b/doc/release/upcoming_changes/15870.new_feature.rst new file mode 100644 index 000000000..9da3f1535 --- /dev/null +++ b/doc/release/upcoming_changes/15870.new_feature.rst @@ -0,0 +1,5 @@ +``keepdims`` parameter for `numpy.count_nonzero` +------------------------------------------------ +The parameter ``keepdims`` was added to `numpy.count_nonzero`. The +parameter has the same meaning as it does in reduction functions such +as `numpy.sum` or `numpy.mean`. |