Add dataframe pretty print function

There is now a generic function string which formats lists and
dataframes into strings.