DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+3 =
Submit