Assuming this line is made up of discrete random numbers in pandas. How can I find point A,B,C,D?
A is the highest point between the first point and C
C is the lowest point between A and B
B is the highest point between C and D
Another example could be like this
You can use this data to test: [1, 2, 3, 10, 13, 15, 20, 50, 49, 49, 32, 33, 35, 36, 35, 34, 33, 34, 35, 36, 30, 27, 22, 15, 15, 17, 20, 27, 30, 32, 50, 56, 67, 85, 100, 99, 94, 83, 72, 59, 66, 67, 89, 90, 92, 127, 130, 189]
For the data above:
A = 50
B = 100
C = 15
D = 59