Skip to content

Commit 05b2789

Browse files
committed
ENH: change to tree-like MultiIndex output with > 2 levels, GH #689
1 parent b91b645 commit 05b2789

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/index.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -2070,8 +2070,7 @@ def _sparsify(label_list):
20702070
if p == t:
20712071
sparse_cur.append('')
20722072
else:
2073-
result.append(cur)
2074-
break
2073+
sparse_cur.append(t)
20752074

20762075
prev = cur
20772076

0 commit comments

Comments
 (0)