Modal value of an array
datta.abhirup at gmail.com
datta.abhirup at gmail.com
Wed Mar 28 23:40:22 EDT 2007
Hi
How can I find out the modal value in an array. That is the value
which occurs maximum time in the sequence ..
e.g. if my array has values like [2,3,2,2,2,4,2,2] definitely the
maximum time 2 occurs in the array. so this function should be able to
return 2 as a result ..
So is there any function in built in python which can do that ?
Thanks
Abhirup
More information about the Python-list
mailing list