how to initialize a vector is zero in python using numpy code example Example: np.zeros >>> np.zeros((2, 1)) array([[ 0.], [ 0.]])