Hello, I have two questions -
Ques1 --
I have a simple data (attached) and a script working fine but as long as I want convert it into a for loop. Not getting the right thing.
AIM - I want the top10% resistance value for each current. My data is not symmetric, means number of data points for each current is different.
In the same data there are only 7 current values and in real data, it can take 100s of values.
Approach -- I am generating a Quantile table and then comparing my resistance value by 90% quantile value and adding an extra column 'Top10%'. Everything is working fine for sample data with 7 current values, but I need a loop for it. Can super users point me what is the mistake I am doing in my for loop, this will help to learn how implement for loops.?
Any help ?
Ques2 --What is the best way to get top 95% data ?
Any help here ?