Skip to content

Commit cffa22b

Browse files
committed
Use proper punctuation in the axis docstring
1 parent 8693a01 commit cffa22b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

pandas/io/formats/style.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,9 @@ def apply(self, func, axis=0, subset=None, **kwargs):
577577
Must return a DataFrame with identical index and
578578
column labels when ``axis=None``
579579
axis : int, str or None, default 0
580-
apply to each column (``axis=0`` or ``'index'``)
581-
or to each row (``axis=1`` or ``'columns'``) or
582-
to the entire DataFrame at once with ``axis=None``
580+
apply to each column (``axis=0`` or ``'index'``), to each row
581+
(``axis=1`` or ``'columns'``), or to the entire DataFrame at once
582+
with ``axis=None``.
583583
subset : IndexSlice
584584
a valid indexer to limit ``data`` to *before* applying the
585585
function. Consider using a pandas.IndexSlice
@@ -895,8 +895,8 @@ def background_gradient(self, cmap='PuBu', low=0, high=0, axis=0,
895895
low, high : float
896896
compress the range by these values.
897897
axis : int, str or None, default 0
898-
apply to each column (``axis=0`` or ``'index'``) or to each row
899-
(``axis=1`` or ``'columns'``) or to the entire DataFrame at once
898+
apply to each column (``axis=0`` or ``'index'``), to each row
899+
(``axis=1`` or ``'columns'``), or to the entire DataFrame at once
900900
with ``axis=None``.
901901
subset : IndexSlice
902902
a valid slice for ``data`` to limit the style application to
@@ -1084,9 +1084,9 @@ def bar(self, subset=None, axis=0, color='#d65f5f', width=100,
10841084
subset : IndexSlice, optional
10851085
A valid slice for `data` to limit the style application to.
10861086
axis : int, str or None, default 0
1087-
Apply to each column (`axis=0` or `'index'`)
1088-
or to each row (`axis=1` or `'columns'`) or
1089-
to the entire DataFrame at once with `axis=None`.
1087+
apply to each column (``axis=0`` or ``'index'``), to each row
1088+
(``axis=1`` or ``'columns'``), or to the entire DataFrame at once
1089+
with ``axis=None``.
10901090
color : str or 2-tuple/list
10911091
If a str is passed, the color is the same for both
10921092
negative and positive numbers. If 2-tuple/list is used, the
@@ -1154,8 +1154,8 @@ def highlight_max(self, subset=None, color='yellow', axis=0):
11541154
a valid slice for ``data`` to limit the style application to
11551155
color : str, default 'yellow'
11561156
axis : int, str or None, default 0
1157-
apply to each column (``axis=0`` or ``'index'``) or to each row
1158-
(``axis=1`` or ``'columns'``) or to the entire DataFrame at once
1157+
apply to each column (``axis=0`` or ``'index'``), to each row
1158+
(``axis=1`` or ``'columns'``), or to the entire DataFrame at once
11591159
with ``axis=None``.
11601160
11611161
Returns
@@ -1175,8 +1175,8 @@ def highlight_min(self, subset=None, color='yellow', axis=0):
11751175
a valid slice for ``data`` to limit the style application to
11761176
color : str, default 'yellow'
11771177
axis : int, str or None, default 0
1178-
apply to each column (``axis=0`` or ``'index'``) or to each row
1179-
(``axis=1`` or ``'columns'``) or to the entire DataFrame at once
1178+
apply to each column (``axis=0`` or ``'index'``), to each row
1179+
(``axis=1`` or ``'columns'``), or to the entire DataFrame at once
11801180
with ``axis=None``.
11811181
11821182
Returns

0 commit comments

Comments
 (0)