-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: add set_td_classes method for CSS class addition to data cells #36159
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Can you add a test for the reindexing case though?
# Conflicts: # pandas/tests/io/formats/test_style.py
reindexing tests like these added? |
thanks @attack68 |
@jreback I have a few Styler PRs being worked, plan is to update the docs notebook after they all get finalised, preferably well before 1.2 release? I can link them with each other, since there will be multiple ways now of achieving same results. |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
Simple extension to Styler to allow cells to be assigned CSS classes from a DataFrame of strings.
Seems to be a reasonably common request.
The existing framework, i.e. the
cell_context
dictionary (which previously did nothing) is leveraged.@TomAugspurger