human
python pandas dataframe to dictionary
assistant
Here is some code to convert pandas dataframe `df` with fields 'id', 'value' to dictionary

df.set_index('id')['value'].to_dict()

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.