Skip to content

Commit bceadf0

Browse files
committed
Slight rewrite to sum.
1 parent 638c00a commit bceadf0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/resampling_with_code.Rmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,8 +846,9 @@ You can see the contents of `a` above.
846846

847847
[`sum`]{.r}[`np.sum`]{.python} adds all the numbers in the {{< var array >}}
848848
together, to give the *sum* of the {{< var array >}}. The *sum* is just the
849-
result of adding the second element to the first, then adding third element to
850-
the result, and the fourth element to the result, and so on.
849+
result of adding all the values in the {{< var array >}}. Put another way, it
850+
is the result of adding the second element to the first, then adding third
851+
element to the result, and the fourth element to the result, and so on.
851852

852853
```{python}
853854
np.sum(a)

0 commit comments

Comments
 (0)