Added list_to_df function