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
Notice in the html below the second index column's 'a' field is given as <th rowspan="2" valign="top">a</th>, expanding over what should be an empty cell.
I actually found this using a pivot table, margins=True, as this creates a row keyed like ('All', '', '').
@y-p@jreback r u sure this a bug? _get_level_lengths on line 742 of pandas/core/format.py explicitly tests for the empty string. Getting rid of that check causes tests to fail, and looking at the tests it looks like this kind of output is expected unless the tests are copy and pasted output of what is expected in which case it probably is a bug.
@Adeodatus I asked because the code seems to indicate that an empty string in a MultiIndex means "repeat the previous value", so I'm not sure I would say it's definitely incorrect. Seems more like a design choice issue. Of course, I could be completely wrong.
Notice in the html below the second index column's 'a' field is given as
<th rowspan="2" valign="top">a</th>
, expanding over what should be an empty cell.I actually found this using a pivot table,
margins=True
, as this creates a row keyed like('All', '', '')
.The text was updated successfully, but these errors were encountered: