Skip to content

Instantly share code, notes, and snippets.

@pimlock
Created May 12, 2021 17:43
Show Gist options
  • Save pimlock/53745403fcc786f64da99e96dcbc1abb to your computer and use it in GitHub Desktop.
Save pimlock/53745403fcc786f64da99e96dcbc1abb to your computer and use it in GitHub Desktop.
import json
with open("2016-olympics-medals.json") as f:
data = json.load(f)
df = pd.json_normalize(data, record_path="Countries")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment