Skip to content

Instantly share code, notes, and snippets.

@akmamun
Last active December 11, 2019 10:13
Show Gist options
  • Select an option

  • Save akmamun/b460e524a8468b6bdd1fbd6f58e90fa1 to your computer and use it in GitHub Desktop.

Select an option

Save akmamun/b460e524a8468b6bdd1fbd6f58e90fa1 to your computer and use it in GitHub Desktop.
Json to CSV Python
#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