My question is similar to this: subsampling every nth entry in a numpy array
Let's say I have an array as given below: a = [1,2,2,2,3,4,1,2,2,2,3,4,1,2,2,2,3,4....]
How can I extend the slice such that I slice three elements at specific intervals? I.e. how can I slice 2s from the array? I believe basic slicing does not work in this case.