I have a numpy array from 0 to 999 and I would like to make a slice that runs from the last element in the list (999) to the one in the middle (500).
test[500:][::-1] works but if I have a two dimensional array and I only want to do so along the zeroth axis it doesn't work because it also reverses the second axis.
import numpy as np
test = np.arange(1000)
test[500:][::-1]