Skip to content

Instantly share code, notes, and snippets.

@netletic
Created May 13, 2021 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netletic/e4891b798fc1e676dca5bc71540b8d34 to your computer and use it in GitHub Desktop.
Save netletic/e4891b798fc1e676dca5bc71540b8d34 to your computer and use it in GitHub Desktop.
def delta(t1: Counter, t2: Counter, limit: Optional[int] = 5) -> List[Tuple[str, int]]:
return (t2 - t1).most_common(limit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment