dict to dataframe 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: dataframe from dict
pd.DataFrame.from_dict(data)
Example 3: columns to dictionary pandas
pd.Series(df.A.values,index=df.B).to_dict()