human
delete every nth row or column in a matrix using Python
assistant
Here is some code to delete every 8th column in a numpy array 'a'.

np.delete(a, list(range(0, a.shape[1], 8)), axis=1)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.