Skip to content

Commit

Permalink
BUG: Fix .to_excel() for MultiIndex containing a NaN value pandas-dev…
Browse files Browse the repository at this point in the history
  • Loading branch information
mpuels committed Jul 24, 2016
1 parent ba41db6 commit 335cf86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandas/formats/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,8 @@ def _format_hierarchical_rows(self):
self.df.index.levels,
self.df.index.labels):

values = levels.take(labels, allow_fill=levels._can_hold_na,
values = levels.take(labels,
allow_fill=levels._can_hold_na,
fill_value=True)

for i in spans:
Expand Down

0 comments on commit 335cf86

Please sign in to comment.