Skip to content

Instantly share code, notes, and snippets.

@sagorbrur
Last active March 7, 2020 14:02
Show Gist options
  • Select an option

  • Save sagorbrur/0eced801bf1366051e671e5d10ed3529 to your computer and use it in GitHub Desktop.

Select an option

Save sagorbrur/0eced801bf1366051e671e5d10ed3529 to your computer and use it in GitHub Desktop.
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