Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Prose error describing numpy rows and columns relative to axis number... #321
The following line shows rows with axis 0:
"If we ask for the average across axis 0 (rows in our 2D example), we get:"
and here columns are show with axis 1:
"If we average across axis 1 (columns in our 2D example), we get:"
The diagram above correctly shows axis 0 as columns and axis 1 as rows.
Perhaps this episode has been updated since October 7, but the prose looks correct to me and consistent with the diagram, although it could be clearer. The current text is a bit glib about the semantics of
The main inconsistency that I would like to report is that the diagram uses object notation to take the mean:
whereas the code cell uses functional notation:
While both notations are correct, this discrepancy adds more cognitive burden to the learner.
Secondly, in the diagram, the
Finally, in the diagram, the