From 14199b81d3d0fb24efbb58331ceb0f3fcf547dd2 Mon Sep 17 00:00:00 2001 From: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com> Date: Tue, 8 Oct 2024 09:40:36 +0200 Subject: [PATCH 1/2] Fix Styler docstring --- pandas/io/formats/style.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 6e5ae09485951..09958c834662f 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -222,6 +222,7 @@ class Styler(StylerRenderer): * ``level`` where `k` is the level in a MultiIndex * Column label cells include + * ``col_heading`` * ``col`` where `n` is the numeric position of the column * ``level`` where `k` is the level in a MultiIndex @@ -231,7 +232,7 @@ class Styler(StylerRenderer): * Trimmed cells include ``col_trim`` or ``row_trim``. Any, or all, or these classes can be renamed by using the ``css_class_names`` - argument in ``Styler.set_table_classes``, giving a value such as + argument in ``Styler.set_table_styles``, giving a value such as *{"row": "MY_ROW_CLASS", "col_trim": "", "row_trim": ""}*. Examples From e1bbf69b1c152e9f35bb1886b29787613a520ed1 Mon Sep 17 00:00:00 2001 From: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com> Date: Tue, 8 Oct 2024 21:29:31 +0200 Subject: [PATCH 2/2] Remove blankspaces --- pandas/io/formats/style.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 09958c834662f..eb6773310da69 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -222,7 +222,7 @@ class Styler(StylerRenderer): * ``level`` where `k` is the level in a MultiIndex * Column label cells include - + * ``col_heading`` * ``col`` where `n` is the numeric position of the column * ``level`` where `k` is the level in a MultiIndex