1import pandas as pd
2data = {'col_1': [3, 2, 1, 0], 'col_2': ['a', 'b', 'c', 'd']}
3pd.DataFrame.from_dict(data, orient='index').T
1>>> data = {'col_1': [3, 2, 1, 0], 'col_2': ['a', 'b', 'c', 'd']}
2>>> pd.DataFrame.from_dict(data)
3 col_1 col_2
40 3 a
51 2 b
62 1 c
73 0 d
8
1#Lazy way to convert json dict to df
2
3pd.DataFrame.from_dict(data, orient='index').T