PyDocs

Nav

Numeric and Mathematical Modules

multimode

statistics

function · Added in 3.8 (source)
  • multimode(data)
Return a list of the most frequently occurring values.

Will return more than one result if there are multiple modes
or an empty list if *data* is empty.

>>> multimode('aabbbbbbbbcc')
['b']
>>> multimode('aabbbbccddddeeffffgg')
['b', 'd', 'f']
>>> multimode('')
[]
1 Example
>>> multimode('aabbbbccddddeeffffgg')
['b', 'd', 'f']
>>> multimode('')
[]
from the Python docs
See Also
No see-alsos for statistics/multimode
0 Notes
No notes for multimode