Recently I learned some ways not to use for loops in numpy, since they make code inefficient and numpy enables you to work without for loops and more with lambda expressions.
So now I wonder if there is a possibility to do the following without any for loop, by creating some arrays before calculating:
Let's say I have an array with tuples:
slice_indexes = np.array([(0,9),(1,10),(2,11),(3,12),...])
Then we have an array we want to slice by those tuples:
data_array[i:j]
Is this achievable without a for loop? If yes? How?