convert dataframe row to dictionary pandas without index code example Example: pandas to dictionary df.to_dict('records')