Last active
March 7, 2020 14:02
-
-
Save sagorbrur/0eced801bf1366051e671e5d10ed3529 to your computer and use it in GitHub Desktop.
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
| import pandas as pd | |
| def get_meta_from_json(json_file): | |
| df = pd.read_json(json_file) | |
| df = df.T | |
| return df | |
| if __name__=="__main__": | |
| json_file = "myjson.json" | |
| meta_train_df = get_meta_from_json(json_file) | |
| meta_train_df.head() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment