ENH: DataFrame.style sparsified MultiIndex by TomAugspurger · Pull Request #13775 · pandas-dev/pandas (original) (raw)
- closes Conditional HTML styling hides MultiIndex structure #11655
- tests added / passed
- passes
git diff upstream/master | flake8 --diff
- whatsnew entry
Notebook comparing DataFrame._html_repr_ to DataFrame.style
I think we're identical for non-truncated DataFrames. That' has not been implemented in Styler
yet.
Along the way I noticed two other things that ended up needing fixing.
- DataFrame.columns.names were not displayed
- CSS classes weren't being assigned correctly to row labels.
The fixes ended up being pretty intertwined, so I've put them in a single PR. Unfortunately, the commits are a bit jumbled as well :/