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.