pandas dataframe to dict indexing column as key code example
Example 1: dataframe to dict without index
df.to_dict('index')
Example 2: dataframe to dict without index
df.to_dict('list')
df.to_dict('index')
df.to_dict('list')