0

Sort Frequencies

Hey guys ! How can I sort my frequency table and get the most 50 most common characters.?

3rd Dec 2019, 10:56 PM
Sahra.P
Sahra.P - avatar
2 odpowiedzi
0
Show us what you've got so far?
3rd Dec 2019, 11:00 PM
HonFu
HonFu - avatar
0
look up the "collections" module, scroll down to "counter" then..."most_common" :- https://docs.python.org/3/library/collections.html#collections.Counter.
3rd Dec 2019, 11:25 PM
rodwynnejones
rodwynnejones - avatar