diff --git a/tests/ipynbref/IntroNumPy.orig.html b/tests/ipynbref/IntroNumPy.orig.html index 3de3f9c..65caec8 100644 --- a/tests/ipynbref/IntroNumPy.orig.html +++ b/tests/ipynbref/IntroNumPy.orig.html @@ -2822,8 +2822,7 @@ The sum of elements along the columns is : [ 4 6 8 10]
-

As you can see in this example, the value of the axis parameter is the dimension which will be consumed once the operation has been carried out. This is why to sum along the rows we use axis=0.
-

+

As you can see in this example, the value of the axis parameter is the dimension which will be consumed once the operation has been carried out. This is why to sum along the rows we use axis=0.

This can be easily illustrated with an example that has more dimensions; we create an array with 4 dimensions and shape (3,4,5,6) and sum along the axis number 2 (i.e. the third axis, since in Python all counts are 0-based). That consumes the dimension whose length was 5, leaving us with a new array that has shape (3,4,6):

diff --git a/tests/ipynbref/IntroNumPy.orig.ipynb b/tests/ipynbref/IntroNumPy.orig.ipynb index aa596a5..a5f72a2 100644 --- a/tests/ipynbref/IntroNumPy.orig.ipynb +++ b/tests/ipynbref/IntroNumPy.orig.ipynb @@ -2184,7 +2184,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "As you can see in this example, the value of the `axis` parameter is the dimension which will be *consumed* once the operation has been carried out. This is why to sum along the rows we use `axis=0`. \n", + "As you can see in this example, the value of the `axis` parameter is the dimension which will be *consumed* once the operation has been carried out. This is why to sum along the rows we use `axis=0`.\n", "\n", "This can be easily illustrated with an example that has more dimensions; we create an array with 4 dimensions and shape `(3,4,5,6)` and sum along the axis number 2 (i.e. the *third* axis, since in Python all counts are 0-based). That consumes the dimension whose length was 5, leaving us with a new array that has shape `(3,4,6)`:" ] @@ -29006,4 +29006,4 @@ "metadata": {} } ] -} \ No newline at end of file +}