Created
July 29, 2020 03:25
-
-
Save remotephone/912ec42ac985832ccabba9799f2cb943 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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