Skip to content

Commit c3b4a54

Browse files
committed
placate pre-commit
1 parent fadafba commit c3b4a54

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pandas/io/formats/style_render.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,8 @@ def concatenated_visible_rows(obj):
954954
i for i in range(index_levels) if not self.hide_index_[i]
955955
]
956956
target_index_levels: list[int] = [
957-
i for i in range(index_levels)
957+
i
958+
for i in range(index_levels)
958959
if "invisible" in clines or not self.hide_index_[i]
959960
]
960961
for rn, r in enumerate(visible_row_indexes):

pandas/tests/io/formats/style/test_to_latex.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,11 +1096,11 @@ def test_clines_multiindex(clines, expected, env):
10961096
"""
10971097
),
10981098
),
1099-
]
1099+
],
11001100
)
11011101
@pytest.mark.parametrize("env", ["table"])
11021102
def test_clines_hiddenindex(clines, expected, env):
1103-
# Make sure that \clines are correctly hidden or shown with all indixes hideen
1103+
# Make sure that \clines are correctly hidden or shown with all indixes hidden
11041104
midx = MultiIndex.from_product([["A", "-", "B"], ["X", "Y"]])
11051105
df = DataFrame([[1], [2], [99], [99], [3], [4]], index=midx)
11061106
styler = df.style
@@ -1110,7 +1110,6 @@ def test_clines_hiddenindex(clines, expected, env):
11101110
assert expected in result
11111111

11121112

1113-
11141113
def test_col_format_len(styler):
11151114
# gh 46037
11161115
result = styler.to_latex(environment="longtable", column_format="lrr{10cm}")

0 commit comments

Comments
 (0)