From 76eff8124b17e30d19f8c00c8b6e06c5f2c9216e Mon Sep 17 00:00:00 2001 From: "JHM Darbyshire (iMac)" Date: Wed, 18 Aug 2021 16:38:05 +0200 Subject: [PATCH] doc correction --- pandas/io/formats/style_render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py index 8c8112cf585a1..ab0fd34047683 100644 --- a/pandas/io/formats/style_render.py +++ b/pandas/io/formats/style_render.py @@ -681,7 +681,7 @@ def format( to. If the ``formatter`` argument is given in dict form but does not include all columns within the subset then these columns will have the default formatter applied. Any columns in the formatter dict excluded from the subset will - raise a ``KeyError``. + be ignored. When using a ``formatter`` string the dtypes must be compatible, otherwise a `ValueError` will be raised.