Entering edit mode
6.9 years ago
raya.girish
▴
40
hi all i have table i want to remove duplicates so for example DDC DDC and DDC_Average i only want DDC_Average in column
DDC 1644 205311_at 2.0444143854 1.7238224669
DDC 1644 214347_s_at 1.5843940083 1.155809
DDC_Average NA NA 1.8144041969 1.4398157335
DDHD2 23259 212690_at 7.6609683554 8.024884
DDIT3 1649 209383_at 7.5272440019 7.260298
DDIT4 54541 202887_s_at 10.8441113022 11.3783353789
DDN 23109 214788_x_at 1.4528494554 1.198107
DDO 8528 207418_s_at 2.2643702324 2.213884
DDO 8528 222134_at 2.1829266013 2.455178
DDO_Average NA NA 2.2236484169 2.334531
DDOST 1650 208674_x_at 11.5236078099 11.38367
DDOST 1650 208675_s_at 11.5512693309 11.48695
DDOST_Average NA NA 11.5374385704 11.43531
Hi cpad0112 i am getting result but this not what i want Example DDC_Average is the average of DDC and DDC So i no longer need this values(DDC and DDC ) i only want DDC_Average . Similary for other as well for example DDO and DDOST
updated the code and added few lines below: (first one should give you the output you wanted):
In python3.6: