Added dataframe formatting method