Last active
December 11, 2019 10:13
-
-
Save akmamun/b460e524a8468b6bdd1fbd6f58e90fa1 to your computer and use it in GitHub Desktop.
Json to CSV Python
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
| #pip install pandas | |
| import json | |
| from datetime import datetime | |
| import pandas as pd | |
| sheet = [ | |
| { | |
| "face": { | |
| "id": "1", | |
| "label": "ABDULLAH AL RUBAYET" | |
| }, | |
| "final": 1576051353.4387753, | |
| } | |
| ] | |
| pd.io.json.json_normalize(sheet).to_csv(f'{datetime.now()}.csv') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment