You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd say since repr returns Series([],... It could make sense to return that. The way we're using to_string, it'd make sense if it returned an empty string (if the newly-added "length" flag is false.
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
The text was updated successfully, but these errors were encountered: