Skip to content

Instantly share code, notes, and snippets.

@rtirrell
Created January 7, 2011 23:21
Show Gist options
  • Save rtirrell/770295 to your computer and use it in GitHub Desktop.
Save rtirrell/770295 to your computer and use it in GitHub Desktop.
def tuple_filter(tupl):
count = 0
for transaction in transactions:
if all(e in transaction for e in tupl):
count += 1
if count >= threshold_count:
return True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment