Skip to content

Commit 434faff

Browse files
authored
DOC CLN: remove unnecessary substitution, due to curly brackets (#45624)
1 parent 175904a commit 434faff

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pandas/io/formats/style.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -1659,7 +1659,6 @@ def _apply_index(
16591659
alt="applymap",
16601660
altwise="elementwise",
16611661
func="take a Series and return a string array of the same length",
1662-
axis='{0, 1, "index", "columns"}',
16631662
input_note="the index as a Series, if an Index, or a level of a MultiIndex",
16641663
output_note="an identically sized array of CSS styles as strings",
16651664
var="s",
@@ -1684,7 +1683,7 @@ def apply_index(
16841683
----------
16851684
func : function
16861685
``func`` should {func}.
1687-
axis : {axis}
1686+
axis : {{0, 1, "index", "columns"}}
16881687
The headers over which to apply the function.
16891688
level : int, str, list, optional
16901689
If index is MultiIndex the level(s) over which to apply the function.
@@ -1745,7 +1744,6 @@ def apply_index(
17451744
alt="apply",
17461745
altwise="level-wise",
17471746
func="take a scalar and return a string",
1748-
axis='{0, 1, "index", "columns"}',
17491747
input_note="an index value, if an Index, or a level value of a MultiIndex",
17501748
output_note="CSS styles as a string",
17511749
var="v",
@@ -2754,7 +2752,6 @@ def hide(
27542752
name="background",
27552753
alt="text",
27562754
image_prefix="bg",
2757-
axis="{0 or 'index', 1 or 'columns', None}",
27582755
text_threshold="",
27592756
)
27602757
@Substitution(subset=subset)
@@ -2789,7 +2786,7 @@ def background_gradient(
27892786
Compress the color range at the high end. This is a multiple of the data
27902787
range to extend above the maximum; good values usually in [0, 1],
27912788
defaults to 0.
2792-
axis : {axis}, default 0
2789+
axis : {{0, 1, "index", "columns", None}}, default 0
27932790
Apply to each column (``axis=0`` or ``'index'``), to each row
27942791
(``axis=1`` or ``'columns'``), or to the entire DataFrame at once
27952792
with ``axis=None``.
@@ -2915,7 +2912,6 @@ def background_gradient(
29152912
name="text",
29162913
alt="background",
29172914
image_prefix="tg",
2918-
axis="{0 or 'index', 1 or 'columns', None}",
29192915
text_threshold="This argument is ignored (only used in `background_gradient`).",
29202916
)
29212917
def text_gradient(

0 commit comments

Comments
 (0)