Skip to content

Fix styling of DataFrame for columns with boolean label #47848

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
Aug 1, 2022

Conversation

bherwerth
Copy link
Contributor

@bherwerth bherwerth commented Jul 25, 2022

Summary of changes

  • Make the subset argument in styling by default a boolean mask indicating where the numerical columns of the data frame are.
  • Add new test cases for checking that the expected columns are styled in .ctx.

@mroeschke mroeschke added the Styler conditional formatting using DataFrame.style label Jul 26, 2022
@bherwerth bherwerth marked this pull request as ready for review July 27, 2022 07:27
Copy link
Contributor

@attack68 attack68 left a comment

Choose a reason for hiding this comment

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

LGTM

@mroeschke mroeschke added this to the 1.5 milestone Aug 1, 2022
@mroeschke mroeschke merged commit d36138b into pandas-dev:main Aug 1, 2022
@mroeschke
Copy link
Member

Thanks @bherwerth

@bherwerth bherwerth deleted the styling-subset-defaults branch August 1, 2022 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Styler conditional formatting using DataFrame.style
Projects
None yet
3 participants