Created
March 6, 2019 17:16
-
-
Save sreevardhanreddi/7b81ae69fd5c1f45f6ad65d023bea898 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
temp = [] | |
with open('JSON_TO_CSV_2019-01-30-18-56-22-101458.csv') as f: | |
r = csv.reader(f) | |
head = next(r) | |
for i in r: | |
dict_ ={} | |
for j,k in zip(head,i): | |
dict_[j]=k | |
temp.append(dict_) | |
dict_ = {} | |
#instead of appending to temp, process it on the fly |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment