15/26
Part 3 of 4 · Picking entries out of a tableLearn and do
A number removes the axis. A slice keeps it
Picking a column can keep its axis or drop it.
print(square[:, 2].shape)
print(square[:, 2:3].shape)
(3,)
(3, 1)
2 is one number, so the column axis is gone and you get a flat list. 2:3 is a slice, a range that happens to hold one column, so the axis stays and you get a column. It's the same choice as keepdims.
... means every axis you didn't write. classes[..., 2] is test 3 for every student in every class, however many axes come first.
In the editor, fill in test3, test 3 for every student kept as a column, and vs_test3, each score minus that student's own test 3 score. square is square, so a flat test3 runs with no error.