Exception calling to_string on empty Series
from pandas import Series
s = Series({})
s.to_string()

pandas\core\series.pyc in to_string(self, buf,
na_rep, float_format, nanRep)
    460             na_rep = nanRep
    461
--> 462         the_repr = self._get_repr(float_format=float_format, na_rep=na_rep)
    463         if buf is None:
    464             return the_repr

pandas\core\series.pyc in _get_repr(self, name, print_header, length, na_rep, float_format)
    481             string_index = index.format()
    482
--> 483         maxlen = max(len(x) for x in string_index)
    484         padSpace = min(maxlen, 60)
    485

ValueError: max() arg is an empty sequence
