I have a numpy array a = np.arange(100)
including 100 numbers.
I wondered to know is there a way to slice it periodically rather than using the conditional statements.
for example, if I want to slice the 1st four numbers + 5th four numbers + 9th four numbers and so on and finally have all these in one array.
any suggestions?
thanks