Skip to content

Instantly share code, notes, and snippets.

@rakashi
rakashi / json2csv.py
Last active November 18, 2017 09:00
converting json format dataset into csv format
#datafromat looks like below format
# Automotive_5.json
# {"reviewerID": "A3F73SC1LY51OO", "asin": "B00002243X", "reviewerName": "Alan Montgomery", "helpful": [4, 4], "reviewText": "I needed a set of jumper cables for my new car and these had good reviews and were at a good price. They have been used a few times already and do what they are supposed to - no complaints there.What I will say is that 12 feet really isn't an ideal length. Sure, if you pull up front bumper to front bumper they are plenty long, but a lot of times you will be beside another car or can't get really close. Because of this, I would recommend something a little longer than 12'.Great brand - get 16' version though.", "overall": 5.0, "summary": "Work Well - Should Have Bought Longer Ones", "unixReviewTime": 1313539200, "reviewTime": "08 17, 2011"}
# {"reviewerID": "A3F73SC1LY51OO", "asin": "B00002243X", "reviewerName": "Alan Montgomery", "helpful": [4, 4], "reviewText": "I needed a set of jumper cables for my new car and these had goo