Commit 213f030e authored by Azalee Bostroem's avatar Azalee Bostroem Committed by Trevor Bekolay
Browse files

labeling axes with row and columns now specifically references that this is...

labeling axes with row and columns now specifically references that this is only true in the 2D case
parent 45e129f2
......@@ -493,7 +493,7 @@ we want to perform the operation across an axis:
To support this,
most array methods allow us to specify the axis we want to work on.
If we ask for the average across axis 0 (rows),
If we ask for the average across axis 0 (rows in our 2D example),
we get:
~~~ {.python}
......@@ -522,7 +522,7 @@ print data.mean(axis=0).shape
The expression `(40,)` tells us we have an N×1 vector,
so this is the average inflammation per day for all patients.
If we average across axis 1 (columns), we get:
If we average across axis 1 (columns in our 2D example), we get:
~~~ {.python}
print data.mean(axis=1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment