We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b703cd commit 9022f54Copy full SHA for 9022f54
pandas/io/formats/style_render.py
@@ -956,14 +956,11 @@ def concatenated_visible_rows(obj):
956
visible_index_levels: list[int] = [
957
i for i in range(index_levels) if not self.hide_index_[i]
958
]
959
- target_index_levels: list[int] = [
960
- i
961
- for i in range(index_levels)
962
- if "invisible" in clines or not self.hide_index_[i]
963
- ]
964
for rn, r in enumerate(visible_row_indexes):
965
lvln = 0
966
- for lvl in target_index_levels:
+ for lvl in range(index_levels):
+ if self.hide_index_[lvl] and "invisible" not in clines:
+ continue
967
if lvl == index_levels - 1 and "skip-last" in clines:
968
continue
969
idx_len = d["index_lengths"].get((lvl, r), None)
0 commit comments