Created
December 17, 2019 23:30
-
-
Save nkrabben/14e7cc34db5452c0632e29078d26dee6 to your computer and use it in GitHub Desktop.
Convert IA JSON to CSV using pandas
This file contains hidden or 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
import json | |
import pandas as pd | |
with open('Downloads/xfrcollective.json', 'r') as f: | |
data = json.load(f) | |
df = pd.DataFrame(data['collection_items']) | |
df.to_csv('Downloads/xfrcollective.csv', index=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment