I have labels and their frequencies(ie number of times they are repeated) for a dataset.
Is there a library which can be used to group together those labels which have almost similar frequency(ie based on variation).
As an example: Suppose a is repeated 10 times, b 9 times, c 6 times, d 5 times, e 2 times So I want and b fall into one group, c and d in one group and e in another group.