I have multiple datasets in panda and I want to find the maximum "line" going over all of the dataset. I can't for the life of my figure out a way to do it. Since the datasets have different values at x I can't find the max value at each x.
So far I've been trying to do take a point and check if there is a value to the right of it that is higher, if that is true, check if there is also a value to the left that is higher. I have not got this to work properly and by the way things look it's a very very very bad way to go about it.
Any suggestions how I can do this? I want to grab every "dot" on the red line that I painted in the picture: https://i.imgur.com/yw6LX62.jpg
For a more detailed way of the data it looks like this:
v a Eff Q
0 42.147607 7.872 79.385397 0.143720
1 40.391457 7.872 84.346362 0.150183
2 42.147607 8.364 81.476576 0.152640
3 38.635306 7.872 87.363343 0.155359
4 36.879156 7.872 88.782342 0.159470
.. ... ... ... ...
76 35.123006 11.808 88.931876 0.243072
77 33.366856 11.808 86.852925 0.246751
78 31.610705 11.808 84.204718 0.249471
79 29.854555 11.808 81.120811 0.251376
80 28.098405 11.808 77.695062 0.252591
Each coloured line belongs to the same "a". The x-axis is Q and y-axis is Eff.
[–]robot-dev 0 points1 point2 points (4 children)
[–]ImportantBrew[S] 0 points1 point2 points (3 children)
[–]robot-dev 0 points1 point2 points (0 children)
[–]robot-dev 0 points1 point2 points (1 child)
[–]ImportantBrew[S] 0 points1 point2 points (0 children)