diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 432e12f303919..f97f558fd0e0b 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", @@ -2754,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) @@ -2789,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, 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``. @@ -2915,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(