The axis of an array define the sequence of the indices:
axis=0 corresponds to the first index, axis=1 to the second and so on.
67 63 87
77 69 59
85 87 99
79 72 71
63 89 93
68 92 78
axis = 1
axis = 0
The shape of an array is the set of
numbers (or more precise a tuple of integers) which define the number of elements in each dimensions. For the example above:
shape = (6,3)
axis = 0
axis = 1
axis = 2