add element to second row of numpy aaray code example Example: append row to array python import numpy as np newrow = [1,2,3] A = np.vstack([A, newrow])