Numpy – add row to array

You can do this:

newrow = [1, 2, 3]
A = numpy.vstack([A, newrow])

Leave a Comment