Skip to content

Commit

Permalink
Fix making get_level_lengths non-private
Browse files Browse the repository at this point in the history
  • Loading branch information
jnothman committed Apr 6, 2017
1 parent eb02cc1 commit 1984cab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pandas/formats/excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def _format_hierarchical_rows(self):
# Format hierarchical rows as merged cells.
level_strs = self.df.index.format(sparsify=True, adjoin=False,
names=False)
level_lengths = _get_level_lengths(level_strs)
level_lengths = get_level_lengths(level_strs)

for spans, levels, labels in zip(level_lengths,
self.df.index.levels,
Expand Down
2 changes: 1 addition & 1 deletion pandas/formats/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,7 @@ def _write_hierarchical_rows(self, fmt_values, indent):
levels = frame.index.format(sparsify=sentinel, adjoin=False,
names=False)

level_lengths = _get_level_lengths(levels, sentinel)
level_lengths = get_level_lengths(levels, sentinel)
inner_lvl = len(level_lengths) - 1
if truncate_v:
# Insert ... row and adjust idx_values and
Expand Down

0 comments on commit 1984cab

Please sign in to comment.