One Dimensional Numpy Array using array Function