Python Forum
looking 4 py code: file byte/character frequency
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
looking 4 py code: file byte/character frequency
#2
Actually, collections.Counter do just that. Count the characters. Don't know for non printable ones.
I have somewhere a piece of code I've wrote for a yet unfinished project during my basic Python learning. It counts and sort by decr. frequency

Didn't know the collections module that time
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
RE: looking 4 py code: file byte/character frequency - by wavic - Jan-20-2017, 08:13 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020