Concept Flow - np.expand_dims() and np.squeeze()
Start with array
Apply np.expand_dims(axis)
→Array shape increases by 1 dimension
Apply np.squeeze()
→Remove all size 1 dimensions
Resulting array with changed shape
Start with an array, add a new axis with np.expand_dims(), then remove size 1 axes with np.squeeze().