Skip to content

Commit 8693a01

Browse files
committed
Add default values to axis docstrings
1 parent eaa94eb commit 8693a01

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/io/formats/style.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def apply(self, func, axis=0, subset=None, **kwargs):
576576
on ``axis``), and return an object with the same shape.
577577
Must return a DataFrame with identical index and
578578
column labels when ``axis=None``
579-
axis : int, str or None
579+
axis : int, str or None, default 0
580580
apply to each column (``axis=0`` or ``'index'``)
581581
or to each row (``axis=1`` or ``'columns'``) or
582582
to the entire DataFrame at once with ``axis=None``
@@ -894,7 +894,7 @@ def background_gradient(self, cmap='PuBu', low=0, high=0, axis=0,
894894
matplotlib colormap
895895
low, high : float
896896
compress the range by these values.
897-
axis : int, str or None
897+
axis : int, str or None, default 0
898898
apply to each column (``axis=0`` or ``'index'``) or to each row
899899
(``axis=1`` or ``'columns'``) or to the entire DataFrame at once
900900
with ``axis=None``.
@@ -1153,7 +1153,7 @@ def highlight_max(self, subset=None, color='yellow', axis=0):
11531153
subset : IndexSlice, default None
11541154
a valid slice for ``data`` to limit the style application to
11551155
color : str, default 'yellow'
1156-
axis : int, str or None
1156+
axis : int, str or None, default 0
11571157
apply to each column (``axis=0`` or ``'index'``) or to each row
11581158
(``axis=1`` or ``'columns'``) or to the entire DataFrame at once
11591159
with ``axis=None``.
@@ -1174,7 +1174,7 @@ def highlight_min(self, subset=None, color='yellow', axis=0):
11741174
subset : IndexSlice, default None
11751175
a valid slice for ``data`` to limit the style application to
11761176
color : str, default 'yellow'
1177-
axis : int, str or None
1177+
axis : int, str or None, default 0
11781178
apply to each column (``axis=0`` or ``'index'``) or to each row
11791179
(``axis=1`` or ``'columns'``) or to the entire DataFrame at once
11801180
with ``axis=None``.

0 commit comments

Comments
 (0)