Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created March 20, 2020 20:06
Show Gist options
  • Save aniruddha27/4988a88fc2fdedc0f4ae6fbcc25257e2 to your computer and use it in GitHub Desktop.
Save aniruddha27/4988a88fc2fdedc0f4ae6fbcc25257e2 to your computer and use it in GitHub Desktop.
import json
# open json file
with open('./Importing files/sample_json.json','r') as file:
data = json.load(file)
# json dictionary
print(type(data))
# loading into a DataFrame
df_json = pd.DataFrame(data)
df_json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment