Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

find most frequent element in an array python

>>> from statistics import mode
>>> mode([1, 2, 2, 3, 3, 3, 3, 3, 4, 5, 6, 6, 6])
3
 
PREVIOUS NEXT
Tagged: #find #frequent #element #array #python
ADD COMMENT
Topic
Name
2+9 =