The axis parameter can also be negative, counting axes backwards from the inner most dimension.