Created
March 20, 2020 20:06
-
-
Save aniruddha27/4988a88fc2fdedc0f4ae6fbcc25257e2 to your computer and use it in GitHub Desktop.
This file contains 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 | |
# 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