Searched refs:most_common (Results 1 – 8 of 8) sorted by relevance
/third_party/rust/crates/regex/scripts/ |
D | frequencies.py | 53 for i, (byte, _) in enumerate(freqs.most_common()):
|
/third_party/rust/crates/memchr/scripts/ |
D | make-byte-frequency-table | 53 for i, (byte, _) in enumerate(freqs.most_common()):
|
/third_party/python/Lib/ |
D | statistics.py | 579 pairs = Counter(iter(data)).most_common(1) 599 counts = Counter(iter(data)).most_common()
|
D | pprint.py | 490 items = object.most_common()
|
/third_party/python/Doc/library/ |
D | collections.rst | 238 >>> Counter(words).most_common(10) 292 .. method:: most_common([n]) 296 :meth:`most_common` returns *all* elements in the counter. 299 >>> Counter('abracadabra').most_common(3) 362 c.most_common()[:-n-1:-1] # n least common elements 406 * The :meth:`~Counter.most_common` method requires only that the values be orderable.
|
/third_party/python/Lib/collections/ |
D | __init__.py | 588 def most_common(self, n=None): member in Counter 754 d = dict(self.most_common())
|
/third_party/python/Lib/test/ |
D | test_collections.py | 2037 self.assertEqual(c.most_common(), [('a', 3), ('b', 2), ('c', 1)]) 2039 self.assertEqual(c.most_common(i),
|
/third_party/python/Doc/whatsnew/ |
D | 2.7.rst | 1080 :meth:`~collections.Counter.most_common` returns the N most common 1089 >>> c.most_common(5)
|