convert col of pandas df into a dict code example Example: pandas to dictionary df.to_dict('records')