[Numpy-discussion] Count the occurrence of a certain integer in a list of integers

Alan G Isaac aisaac@american....
Tue Aug 7 08:19:13 CDT 2007


By the way, you can get all the frequencies pretty fast 
using a defaultdict:
http://docs.python.org/lib/defaultdict-examples.html

Cheers,
Alan Isaac






More information about the Numpy-discussion mailing list