convert pandas dataframe to array of dictionary code example Example: pandas dataframe from array of dict #d is a list of dictionaries df = pd.DataFrame(d)