pandas convert dict to columns 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: columns to dictionary pandas
pd.Series(df.A.values,index=df.B).to_dict()