[英]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.