BUG: apply_index styles not universally applied across LaTeX multirows #41994
Labels
Closing Candidate
May be closeable, needs more eyeballs
IO LaTeX
to_latex
Styler
conditional formatting using DataFrame.style
PR #41993 makes
Styler.applymap_index
andStyler.apply_index
compatible withto_latex
. But, with MultiIndexes this introduces a bug: cell coloring is not universal for multirow, albeit multicols are OK.Even if the code is amended to print the styles in problem cells, albeit with a blank display value the problem is not solved because the text is overwritten:
One solution is to apply the multirow last so that it overwrites previous rendered cells, using a negative rowspan.
Albeit this might be quite difficult to code and have other repercussions.
The text was updated successfully, but these errors were encountered: