parse_df function

Convert a data.frame to a list