Skip to content

Commit 526468c

Browse files
authored
CLN: fix bad coding (#41252)
Co-authored-by: JHM Darbyshire (iMac) <[email protected]>
1 parent 6abb567 commit 526468c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pandas/io/formats/style_render.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -486,13 +486,8 @@ def format(
486486
formatter = {col: formatter for col in columns}
487487

488488
for col in columns:
489-
try:
490-
format_func = formatter[col]
491-
except KeyError:
492-
format_func = None
493-
494489
format_func = _maybe_wrap_formatter(
495-
format_func,
490+
formatter.get(col),
496491
na_rep=na_rep,
497492
precision=precision,
498493
decimal=decimal,

0 commit comments

Comments
 (0)