@@ -1659,7 +1659,6 @@ def _apply_index(
1659
1659
alt = "applymap" ,
1660
1660
altwise = "elementwise" ,
1661
1661
func = "take a Series and return a string array of the same length" ,
1662
- axis = '{0, 1, "index", "columns"}' ,
1663
1662
input_note = "the index as a Series, if an Index, or a level of a MultiIndex" ,
1664
1663
output_note = "an identically sized array of CSS styles as strings" ,
1665
1664
var = "s" ,
@@ -1684,7 +1683,7 @@ def apply_index(
1684
1683
----------
1685
1684
func : function
1686
1685
``func`` should {func}.
1687
- axis : {axis }
1686
+ axis : {{0, 1, "index", "columns"} }
1688
1687
The headers over which to apply the function.
1689
1688
level : int, str, list, optional
1690
1689
If index is MultiIndex the level(s) over which to apply the function.
@@ -1745,7 +1744,6 @@ def apply_index(
1745
1744
alt = "apply" ,
1746
1745
altwise = "level-wise" ,
1747
1746
func = "take a scalar and return a string" ,
1748
- axis = '{0, 1, "index", "columns"}' ,
1749
1747
input_note = "an index value, if an Index, or a level value of a MultiIndex" ,
1750
1748
output_note = "CSS styles as a string" ,
1751
1749
var = "v" ,
@@ -2754,7 +2752,6 @@ def hide(
2754
2752
name = "background" ,
2755
2753
alt = "text" ,
2756
2754
image_prefix = "bg" ,
2757
- axis = "{0 or 'index', 1 or 'columns', None}" ,
2758
2755
text_threshold = "" ,
2759
2756
)
2760
2757
@Substitution (subset = subset )
@@ -2789,7 +2786,7 @@ def background_gradient(
2789
2786
Compress the color range at the high end. This is a multiple of the data
2790
2787
range to extend above the maximum; good values usually in [0, 1],
2791
2788
defaults to 0.
2792
- axis : {axis }, default 0
2789
+ axis : {{0, 1, "index", "columns", None} }, default 0
2793
2790
Apply to each column (``axis=0`` or ``'index'``), to each row
2794
2791
(``axis=1`` or ``'columns'``), or to the entire DataFrame at once
2795
2792
with ``axis=None``.
@@ -2915,7 +2912,6 @@ def background_gradient(
2915
2912
name = "text" ,
2916
2913
alt = "background" ,
2917
2914
image_prefix = "tg" ,
2918
- axis = "{0 or 'index', 1 or 'columns', None}" ,
2919
2915
text_threshold = "This argument is ignored (only used in `background_gradient`)." ,
2920
2916
)
2921
2917
def text_gradient (
0 commit comments