Finalized formatting of dataframe for loins

Still need to extend to other dataframes