Skip to content

Commit 62a5905

Browse files
adamkleinwesm
authored andcommitted
fixed no-name condition in multilevel index printing for series
1 parent 5e25572 commit 62a5905

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def _format_nonfloat(k, v):
399399
it = itertools.starmap(_format,
400400
itertools.izip(string_index, vals))
401401
it = list(it)
402-
if is_multi:
402+
if is_multi and any(name for name in index.names):
403403
it.insert(0, header)
404404
if name:
405405
namestr = ("Name: %s, " % self.name) if self.name else ""

0 commit comments

Comments
 (0)