pandas dictionairy code example
Example 1: convert dict to dataframe
#Lazy way to convert json dict to df
pd.DataFrame.from_dict(data, orient='index').T
Example 2: dataframe from dict
pd.DataFrame.from_dict(data)
#Lazy way to convert json dict to df
pd.DataFrame.from_dict(data, orient='index').T
pd.DataFrame.from_dict(data)