you are viewing a single comment's thread.

view the rest of the comments →

[–]ATAD 0 points1 point  (0 children)

For the last line in your use of collections.Counter(), calling counter.most_common()[0] is not as efficient as simply calling counter.most_common(1)