I have a list of key value pairs. For each key, I want to see how unique the values are. For example, for a particular key k1, all the values might be the same. (best case). For a key k2, half of the values are one type and the other half are different. . . Similarly, for a key kx, none of the values match (worst case).
我想根据以上所述,对每个关键人物进行排名(或百分比,无论大小),并作出最后命令,以便我能够筛选出具有许多不同价值(超标等级或百分比)的人。
I somehow think this is somewhat related to some concepts I learned in my data mining course, but just cannot recall effectively.
感谢。