[英]How do I remove all duplicates in one column, and keep the row with highest value (from another column)
我正在尝试删除重复的CustomerID,并保留CompositeRank最高的那个。
CUSTOMERID STORE COMPOSITERANK
51872 FOS 5
51872 MOS 3
51872 BOS 2
10098 BOS 5
10098 MOS 3
10098 FOS 2
99102 MOS 5
99102 FOS 3
99102 BOS 2
删除适当的重复项后,它应如下所示:
CUSTOMERID STORE COMPOSITERANK
51872 FOS 5
10098 BOS 5
99102 MOS 5
谢谢你的时间。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.