From 9f55b3548f8c8b1918b134b35ca89fc28bd6c5e2 Mon Sep 17 00:00:00 2001 From: "JHM Darbyshire (iMac)" Date: Tue, 25 Jan 2022 22:13:23 +0100 Subject: [PATCH 1/3] clean remove unnecessary doc sub --- pandas/io/formats/style.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 432e12f303919..82b75826836e4 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -1659,7 +1659,6 @@ def _apply_index( alt="applymap", altwise="elementwise", func="take a Series and return a string array of the same length", - axis='{0, 1, "index", "columns"}', input_note="the index as a Series, if an Index, or a level of a MultiIndex", output_note="an identically sized array of CSS styles as strings", var="s", @@ -1684,7 +1683,7 @@ def apply_index( ---------- func : function ``func`` should {func}. - axis : {axis} + axis : {{0, 1, "index", "columns"}} The headers over which to apply the function. level : int, str, list, optional If index is MultiIndex the level(s) over which to apply the function. @@ -1745,7 +1744,6 @@ def apply_index( alt="apply", altwise="level-wise", func="take a scalar and return a string", - axis='{0, 1, "index", "columns"}', input_note="an index value, if an Index, or a level value of a MultiIndex", output_note="CSS styles as a string", var="v", From 050941e1ca2cbb9bee933079a32b9296852e062b Mon Sep 17 00:00:00 2001 From: "JHM Darbyshire (iMac)" Date: Tue, 25 Jan 2022 22:15:40 +0100 Subject: [PATCH 2/3] clean remove unnecessary doc sub --- pandas/io/formats/style.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 82b75826836e4..c693b4b60c6b1 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -2752,7 +2752,6 @@ def hide( name="background", alt="text", image_prefix="bg", - axis="{0 or 'index', 1 or 'columns', None}", text_threshold="", ) @Substitution(subset=subset) @@ -2787,7 +2786,7 @@ def background_gradient( Compress the color range at the high end. This is a multiple of the data range to extend above the maximum; good values usually in [0, 1], defaults to 0. - axis : {axis}, default 0 + axis : {{0 or 'index', 1 or 'columns', None}}, default 0 Apply to each column (``axis=0`` or ``'index'``), to each row (``axis=1`` or ``'columns'``), or to the entire DataFrame at once with ``axis=None``. @@ -2913,7 +2912,6 @@ def background_gradient( name="text", alt="background", image_prefix="tg", - axis="{0 or 'index', 1 or 'columns', None}", text_threshold="This argument is ignored (only used in `background_gradient`).", ) def text_gradient( From 18538bea7a540469fec35f7a7d1259218ce39003 Mon Sep 17 00:00:00 2001 From: "JHM Darbyshire (iMac)" Date: Tue, 25 Jan 2022 22:20:53 +0100 Subject: [PATCH 3/3] clean remove unnecessary doc sub --- 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 c693b4b60c6b1..f97f558fd0e0b 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -2786,7 +2786,7 @@ def background_gradient( Compress the color range at the high end. This is a multiple of the data range to extend above the maximum; good values usually in [0, 1], defaults to 0. - axis : {{0 or 'index', 1 or 'columns', None}}, default 0 + axis : {{0, 1, "index", "columns", None}}, default 0 Apply to each column (``axis=0`` or ``'index'``), to each row (``axis=1`` or ``'columns'``), or to the entire DataFrame at once with ``axis=None``.