From 18dbcbe72ade5cf0fd8d638dddb8b16dbe1c302c Mon Sep 17 00:00:00 2001 From: ubiquitin Date: Wed, 22 Apr 2020 05:38:07 -0500 Subject: [PATCH] creation of script to generate csv simple file conversion json to csv for working with current FedRAMP data in Excel --- scripts/fedramp-json2csv.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/fedramp-json2csv.py diff --git a/scripts/fedramp-json2csv.py b/scripts/fedramp-json2csv.py new file mode 100644 index 00000000..a1936cd6 --- /dev/null +++ b/scripts/fedramp-json2csv.py @@ -0,0 +1,9 @@ +#!/usr/local/bin/python +import pandas as pd +# script to parse fedramp json into csv +# Mat Caughron April 2020 +# for installation run `pip install pandas` +# first download current json from https://raw.githubusercontent.com/18F/fedramp-data/master/data/data.json +# and then run this script +df = pd.read_json (r'data.json') +export_csv = df.to_csv (r'fedramp-data.csv', index = None)