Solution
>>> x = np.array([[[0], [1], [2]]])
>>> x.shape
(1, 3, 1)
>>> np.squeeze(x).shape
(3,)
>>> np.squeeze(x, axis=0).shape
(3, 1)
>>> x = np.array([[1,2,3]])
>>> np.swapaxes(x,0,1)
array([[1],
[2],
[3]])
Reference
https://docs.scipy.org/doc/numpy-1.15.1/reference/generated/numpy.squeeze.html
https://docs.scipy.org/doc/numpy/reference/generated/numpy.swapaxes.html