If I have an array in python:
a = np.array([20, 21, 19, 85, 25, 31, 21, 99, 3])
and I want to find the max value between indices 2 and 5 to return 85. How can I do this?
I know a.max()
will output the value 99, but I am not sure how to specify the range.