diff options
| author | Melissa Weber Mendonça <melissawm@gmail.com> | 2021-05-09 12:39:40 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-09 12:39:40 -0300 |
| commit | e1e36145e3c876e8a462b364c91081bf1da478c0 (patch) | |
| tree | 00bdcd60ee4981e79758e7d800b40e3f7f20d662 | |
| parent | f53996b28bb5251c0888c2550919c19daf8e79f9 (diff) | |
| parent | 6f34b4e4380e3afbccb21a3378addd0251498111 (diff) | |
| download | numpy-e1e36145e3c876e8a462b364c91081bf1da478c0.tar.gz | |
Merge pull request #18954 from EvaJau/doc-sum-beginners
DOC: Update beginners docu for sum function with axis
| -rw-r--r-- | doc/source/user/absolute_beginners.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/user/absolute_beginners.rst b/doc/source/user/absolute_beginners.rst index 0de08c3f0..d97b92617 100644 --- a/doc/source/user/absolute_beginners.rst +++ b/doc/source/user/absolute_beginners.rst @@ -771,12 +771,12 @@ If you start with this array:: >>> b = np.array([[1, 1], [2, 2]]) -You can sum the rows with:: +You can sum over the axis of rows with:: >>> b.sum(axis=0) array([3, 3]) -You can sum the columns with:: +You can sum over the axis of columns with:: >>> b.sum(axis=1) array([2, 4]) |
