convert dataframe `df` to list of dictionaries including the index values,df.to_dict('index')