Skip to content

Instantly share code, notes, and snippets.

@dhesse
Last active November 2, 2015 10:02
Show Gist options
  • Save dhesse/513bddc99fbc9f43367a to your computer and use it in GitHub Desktop.
Save dhesse/513bddc99fbc9f43367a to your computer and use it in GitHub Desktop.
# you'll need the Greenville gist as well:
# https://gist.github.com/dhesse/aa2e2425548bf3e4ceb7
from greenville import compareVisuallyToBenford, data
indices = data.Amount >= 10
vc25 = data[indices][data.Amount[indices]\
.apply(lambda x: int(str(x)[:2])) == 25]['Vendor Name'].value_counts()
print vc25[vc25 > 10]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment