how to discard rows of a matrix in python code example Example: how to remove first row of numpy array x = numpy.delete(x, (0), axis=0)