# Just use tile method which multiplies the array with given shape # and reshape method to structure it. x=np.tile(x,(3,1)) y=x.reshape(x.shape[0]*x.shape[1])