Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save remotephone/912ec42ac985832ccabba9799f2cb943 to your computer and use it in GitHub Desktop.
Save remotephone/912ec42ac985832ccabba9799f2cb943 to your computer and use it in GitHub Desktop.
# See https://github.com/vz-risk/VCDB/tree/master/data/joined
import json
import pandas as pd
from collections import Counter
with open('vcdb.json') as f:
vcdb = json.loads(f.read())
variety = []
for inc in vcdb:
[variety.append(v['variety'][0]) for k, v in inc.get('discovery_method').items() if k == "internal"]
count = Counter(variety)
df = pd.DataFrame.from_dict(count, orient='index')
df.plot(kind='bar')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment