from numpy import genfromtxt
Birds = genfromtxt('DataLot.csv', dtype=int, delimiter=',')
import statistics
from collections import Counter
columnaA = Birds[:,1]
print(Counter(columnaA).most_common(6))
print("The multimode of list is : ", statistics.multimode(columnaA))
print("The mode of list is : ", statistics.mode(columnaA))
This gives me this result:
[(9, 93), (10, 90), (8, 89), (13, 83), (11, 83), (5, 80)]
The multimode of list is : [9]
The mode of list is : 9
Why can't I get a Multimode list? If you see only shows one result for Multimode.
This is right. Multimode shows only one result, because there is only one result to show.
The code below:
prints:
And as you can see from the printout of Counter there are three most frequent values, so the multimode gives a list with three elements.
In case of your data there are no other items occurring the same number of times as the most frequent one, so there is only one value in the list.