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