filling zeros in the range of rows

Solution 1:

Like this:

import numpy as np
data=np.loadtxt('input_data')  #512x10  
data[256:513, :] = 0