python pandas dataframe to dictionary,df.set_index('id').to_dict()