I have a 2D numpy array, let\'s say it has shape 4x10 (10 rows and 10 columns). I have 2 1D arrays that have the initial and final indexes, so they are both 20x1. For an example