Skip to content

Commit 07e0277

Browse files
Update pandas/io/formats/style_render.py
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
1 parent 1623424 commit 07e0277

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/io/formats/style_render.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -868,8 +868,7 @@ def _translate_latex(self, d: dict, clines: str | None) -> None:
868868
or multirow sparsification (so that \multirow and \multicol work correctly).
869869
"""
870870
index_levels = self.index.nlevels
871-
# d["head"] will contain at least one column relating to the index,
872-
# it will be marked as `is_visible`: False if all levels are hidden
871+
# GH 52218
873872
visible_index_level_n = max(1, index_levels - sum(self.hide_index_))
874873
d["head"] = [
875874
[

0 commit comments

Comments
 (0)