Skip to content

Commit 3a83e11

Browse files
authored
PERF: Styler (#43285)
1 parent 7472a20 commit 3a83e11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/io/formats/style.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,8 @@ def _update_ctx(self, attrs: DataFrame) -> None:
10231023
)
10241024

10251025
for cn in attrs.columns:
1026-
for rn, c in attrs[[cn]].itertuples():
1026+
ser = attrs[cn]
1027+
for rn, c in ser.items():
10271028
if not c or pd.isna(c):
10281029
continue
10291030
css_list = maybe_convert_css_to_tuples(c)

0 commit comments

Comments
 (0)