hi everybody,<br> I have a file:<br>A_16_P21360207 304 <br>A_14_P136880 783 <br>A_16_P21360209 795 <br>A_16_P21360210 173 <br>A_16_P03641959 1177 <br>A_16_P03641960 1944 <br>A_16_P03641962 999
<br>A_16_P03641963 3391 <br>A_16_P41563649 3626 <br>A_16_P03641964 180 <br>A_16_P41563655 1216 <br>A_16_P03641965 1170 <br>A_16_P03641966 194 <br>A_16_P21360229 290 <br> my script:<br>import math<br>values_lis = []
<br>fh = open('test5','r')<br>for line in fh.readlines():<br> data = line.strip().split('\t')<br> probe = data[0].strip()<br> values= data[1].strip()<br> value = values[0].strip()
<br> value =float(values)<br> old = 0<br> if value >=old:<br> old = value<br> print '%s\t%s'%(probe,old)<br> I am aiming to remove the lowest values in the second column by iterating one over the other....say for example 304 , is lesser than the
<br><br>second row value 783 so i omit the first column first value.. in the same case in the third row 795 is greater the 783 so i omit the 783the second row... this to be carried out for attaining my destination... i have written the sript but it doesnot not remove the lesser values...can you please chek where i go wrong...
<br>