Section 10, Unit 7 -- Momentum

Is there any reason why inside the function calc_corr we're using the python slicing data[::h] to keep only the rows every h-steps?

The calc_corr function can be used without slicing to calculate the correlation coefficient. But to simulate the real trading environemnt, we used slicing inside the function.