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