delete the last rows from numpy array code example Example: how to remove first row of numpy array x = numpy.delete(x, (0), axis=0)