MCPcopy Index your code
hub / github.com/python/cpython / total

Method total

Lib/collections/__init__.py:621–623  ·  view source on GitHub ↗

Sum of the counts

(self)

Source from the content-addressed store, hash-verified

619 return 0
620
621 def total(self):
622 'Sum of the counts'
623 return sum(self.values())
624
625 def most_common(self, n=None):
626 '''List the n most common elements and their counts from the most

Callers 3

test_totalMethod · 0.95
test_binomialvariateMethod · 0.95

Calls 1

valuesMethod · 0.45

Tested by 2

test_totalMethod · 0.76
test_binomialvariateMethod · 0.76