df = pd.DataFrame({'Name': ['John', 'Sara','Peter','Cecilia'], 'Age': [38, 47,63,28], 'City':['Boston', 'Charlotte','London','Memphis']}) datadict = df.to_dict('records')