I'm trying to find the most occurring number in a tuple and assign that value to a variable. I tried the following code, but it gives me the frequency and the mode, when I only need the mode.
from collections import Counter
self.mode_counter = Counter(self.numbers)
self.mode = self.mode_counter.most_common(1)
print self.mode
Is there a way to just assign the mode to self.mode using Counter?