8000 Document the behavior of `axis=None` with `style.background_gradient` by joelostblom · Pull Request #25551 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

Document the behavior of axis=None with style.background_gradient #25551

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 7 commits into from
Mar 7, 2019
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update axis parameter syntax
  • Loading branch information
joelostblom committed Mar 5, 2019
commit 9ae850000cb239a6991bdaa915f3f1a75edf4600
10 changes: 5 additions & 5 deletions pandas/io/formats/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def apply(self, func, axis=0, subset=None, **kwargs):
on ``axis``), and return an object with the same shape.
Must return a DataFrame with identical index and
column labels when ``axis=None``
axis : int, str or None, default 0
axis : {0 or ‘index’, 1 or ‘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 @@ -894,7 +894,7 @@ def background_gradient(self, cmap='PuBu', low=0, high=0, axis=0,
matplotlib colormap
low, high : float
compress the range by these values.
axis : int, str or None, default 0
axis : {0 or ‘index’, 1 or ‘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 @@ -1083,7 +1083,7 @@ def bar(self, subset=None, axis=0, color='#d65f5f', width=100,
----------
subset : IndexSlice, optional
A valid slice for `data` to limit the style application to.
axis : int, str or None, default 0
axis : {0 or ‘index’, 1 or ‘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 @@ -1153,7 +1153,7 @@ def highlight_max(self, subset=None, color='yellow', axis=0):
subset : IndexSlice, default None
a valid slice for ``data`` to limit the style application to.
color : str, default 'yellow'
axis : int, str or None, default 0
axis : {0 or ‘index’, 1 or ‘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 All @@ -1174,7 +1174,7 @@ def highlight_min(self, subset=None, color='yellow', axis=0):
subset : IndexSlice, default None
a valid slice for ``data`` to limit the style application to.
color : str, default 'yellow'
axis : int, str or None, default 0
axis : {0 or ‘index’, 1 or ‘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
0