df_to_string function

Convert a dataframe to a string representation