8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
collections.Counter
1 parent f65f9e8 commit 99fba5fCopy full SHA for 99fba5f
Doc/library/collections.rst
@@ -358, A90E 7 +358,7 @@ Common patterns for working with :class:`Counter` objects::
358
list(c) # list unique elements
359
set(c) # convert to a set
360
dict(c) # convert to a regular dictionary
361
- c.items() # convert to a list of (elem, cnt) pairs
+ c.items() # access the (elem, cnt) pairs
362
Counter(dict(list_of_pairs)) # convert from a list of (elem, cnt) pairs
363
c.most_common()[:-n-1:-1] # n least common elements
364
+c # remove zero and negative counts
Misc/ACKS
@@ -349,6 +349,7 @@ Robbie Clemons
349
Steve Clift
350
Hervé Coatanhay
351
Riccardo Coccioli
352
+Jacob Coffee
353
Nick Coghlan
354
Josh Cogliati
355
Noam Cohen
0 commit comments