Frequency of each category of each attribute is counted to just populate each category as frequency number of times.
Instead, we can just sort the attribute and then choose as many values as we want.
Coverage decreased (-0.02%) to 97.18% when pulling 79189fed91fef0f5ea528ebc0e3022c814e47a82 on harry-b-harish:kmodes.py-edits into 9e9b7644a7cd62dc11c0fc30b07da2a113142dab on nicodv:master.
Frequency of each category of each attribute is counted to just populate each category as frequency number of times. Instead, we can just sort the attribute and then choose as many values as we want.