append a list at the end of each row of 2D array append a list at the end of each row of 2D array numpy numpy

append a list at the end of each row of 2D array


a = np.array([[1, 1], [2, 2], [3, 3]])b = np.array([4, 4])c = np.tile(b[np.newaxis,:], (a.shape[0],1))d = np.concatenate((a,c), axis=1)