You are here : python_3statisticsstatisticsmode

statistics.mode() - statistics

Return the most common data point from discrete or nominal data.  The mode
(when it exists) is the most typical value, and is a robust measure of
central location.


Syntax

statistics.mode(data)


Example

>>> mode([1, 1, 2, 3, 3, 3, 3, 4])
3


Output / Return Value


Limitations


Alternatives / See Also


Reference