How to combine levels according to its frequency


#1

Hello everyone,
How can I reduce the number of levels based on its frequency? I have a large number of levels so can’t do it manually.
Thanks