Skip to content

ENH: consistent Styler.highlight_X arg signature with props #40242

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 5 commits into from
Mar 5, 2021

Conversation

attack68
Copy link
Contributor

@attack68 attack68 commented Mar 5, 2021

This splits #39821 into separate PRs.

The See Also doc strings here reference methods created in those PRs - if we push this through now I will fix it later if those methods don't get approved before 1.3.0.

The tests that were edited contained redundant code and were not testing.

--------
Styler.highlight_max: Highlight the maximum with a style.
Styler.highlight_min: Highlight the minimum with a style.
Styler.highlight_quantile: Highlight values defined by a quantile with a style.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to take these new highlites out

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed


Notes
-----
Uses ``pandas.isna()`` to detect the missing values.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this here? we use isna for detecting missing values by default, so this is not surprising.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

--------
Styler.highlight_null: Highlight missing values with a style.
Styler.highlight_max: Highlight the maximum with a style.
Styler.highlight_quantile: Highlight values defined by a quantile with a style.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@jreback jreback added the Styler conditional formatting using DataFrame.style label Mar 5, 2021
@jreback jreback added this to the 1.3 milestone Mar 5, 2021
@jreback
Copy link
Contributor

jreback commented Mar 5, 2021

lgtm. ping on greenish (or green if you had rebased recently)

@attack68
Copy link
Contributor Author

attack68 commented Mar 5, 2021

@jreback green now

@jreback jreback merged commit 2a6fff3 into pandas-dev:master Mar 5, 2021
@jreback
Copy link
Contributor

jreback commented Mar 5, 2021

thanks @attack68

@attack68 attack68 deleted the props_changes branch March 5, 2021 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Styler conditional formatting using DataFrame.style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants