script to get the max from column based on other column values
问题 I need a script to read in a csv file(orig.csv) and output a reformatted csv file(format.csv) The orig csv file will look like this: Time,Label,frame,slot,SSN,Board,BT,SRN,LabelFrame,SRNAME,LabelID,Integrity,MAX_val 2014-03-17,lableA,1,8,0,,SPUB,1,NNN,NNN,1,100%,60 2014-03-17,lableA,2,22,0,,GOUC,2,NNN02,NNN02,1,100%, 2014-03-17,lableB,2,8,0,,CCCB,2,NNN02,NNN02,1,100%,59 2014-03-17,lableB,1,2,4,,CCCB,1,NNN,NNN,1,100%,48 2014-03-17,lableB,1,0,6,,CCCB,1,NNN,NNN,1,100%,59 2014-03-17,lableC,2,6,0,