8000 DOC: Make highlight functions match documentation by parchd-1 · Pull Request #16999 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

DOC: Make highlight functions match documentation #16999

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
Jul 18, 2017
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
Change doc to match code instead
  • Loading branch information
parchd-1 authored Jul 18, 2017
commit 56f4630305cd938075d1be0773cdb7b54d9ee94a
16 changes: 8 additions & 8 deletions pandas/io/formats/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ def bar(self, subset=None, axis=0, color='#d65f5f', width=100,

return self

def highlight_max(self, subset=None, color='yellow', axis=None):
def highlight_max(self, subset=None, color='yellow', axis=0):
"""
Highlight the maximum by shading the background

Expand All @@ -1054,9 +1054,9 @@ def highlight_max(self, subset=None, color='yellow', axis=None):
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 None
0 or 'index' for columnwise, 1 or 'columns' for rowwise
or ``None`` for tablewise (the default)
axis: int, str, or None; default 0
0 or 'index' for columnwise (default), 1 or 'columns' for rowwise
or ``None`` for tablewise

Returns
-------
Expand All @@ -1065,7 +1065,7 @@ def highlight_max(self, subset=None, color='yellow', axis=None):
return self._highlight_handler(subset=subset, color=color, axis=axis,
max_=True)

def highlight_min(self, subset=None, color='yellow', axis=None):
def highlight_min(self, subset=None, color='yellow', axis=0):
"""
Highlight the minimum by shading the background

Expand All @@ -1076,9 +1076,9 @@ def highlight_min(self, subset=None, color='yellow', axis=None):
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 None
0 or 'index' for columnwise, 1 or 'columns' for rowwise
or ``None`` for tablewise (the default)
axis: int, str, or None; default 0
0 or 'index' for columnwise (default), 1 or 'columns' for rowwise
or ``None`` for tablewise

Returns
-------
Expand Down
0