Skip to content

CLN: Styler simplify existing builtin methods #39797

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 4 commits into from
Feb 16, 2021

Conversation

attack68
Copy link
Contributor

Now that Styler.apply can accept ndarray in all cases we can reorganise the module and wrap all the UI facing functions into one:

  • highlight null
  • highlight max
  • highlight min

@gfyoung gfyoung added Refactor Internal refactoring of code Visualization plotting labels Feb 13, 2021
"""
Highlight the value in a Series or DataFrame by func with css-properties
"""
if highlight == "max":
Copy link
Contributor

Choose a reason for hiding this comment

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

this is extra complicated. just inline the conditionals in the functions themselvs.

@lithomas1 lithomas1 added the Styler conditional formatting using DataFrame.style label Feb 16, 2021
@attack68 attack68 changed the title CLN: class for Builtins in Styler and clean up exiting methods CLN: Styler simplify existing builtin methods Feb 16, 2021
@jreback jreback added this to the 1.3 milestone Feb 16, 2021
@jreback jreback merged commit 0c3c56b into pandas-dev:master Feb 16, 2021
@jreback
Copy link
Contributor

jreback commented Feb 16, 2021

thanks @attack68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code Styler conditional formatting using DataFrame.style Visualization plotting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants