Skip to content

DOC CLN: remove unnecessary substitution, due to curly brackets #45624

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions pandas/io/formats/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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.
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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``.
Expand Down Expand Up @@ -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(
Expand Down