Skip to content

DEPR: Styler.render in favour of Styler.to_html #42140

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 50 commits into from
Aug 17, 2021

Conversation

attack68
Copy link
Contributor

@attack68 attack68 commented Jun 20, 2021

This PR deprecates the method Styler.render() in favour of Styler.to_html(), which has been recently introduced and produces the same result under the default case of no arguments.

Additionally this PR has added a test to a new file pandas/tests/io/formats/style/test_deprecated.py, and it has moved some of the previous Styler deprecation tests into this file.

@attack68 attack68 added Deprecate Functionality to remove in pandas IO HTML read_html, to_html, Styler.apply, Styler.applymap Styler conditional formatting using DataFrame.style labels Jun 29, 2021
@attack68 attack68 marked this pull request as ready for review July 29, 2021 15:21
@attack68 attack68 changed the title [WIP]: DEPR: Styler.render in favour of Styler.to_html DEPR: Styler.render in favour of Styler.to_html Jul 29, 2021
Copy link
Contributor

@jreback jreback left a 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 rebase

…r_after

# Conflicts:
#	doc/source/whatsnew/v1.4.0.rst
#	pandas/io/formats/style_render.py
@jreback
Copy link
Contributor

jreback commented Aug 5, 2021

can you rebase again, thanks

@jreback jreback merged commit 7376b36 into pandas-dev:master Aug 17, 2021
@jreback
Copy link
Contributor

jreback commented Aug 17, 2021

thanks @attack68

@attack68 attack68 deleted the styler_depr_render_after branch August 17, 2021 14:12
feefladder pushed a commit to feefladder/pandas that referenced this pull request Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas IO HTML read_html, to_html, Styler.apply, Styler.applymap Styler conditional formatting using DataFrame.style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants