pandas-dev / pandas Public
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
DEPR: Styler.set_na_rep
and .set_precision
in favour of .format(na_rep='x', precision=3)
#40134
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Conflicts: # pandas/io/formats/style.py
The idea seems good to me. Looks like we'll need a release note. |
jreback
requested changes
Mar 3, 2021
176 tasks
jreback
requested changes
Mar 4, 2021
# Conflicts: # pandas/io/formats/style.py
jorisvandenbossche
reviewed
Mar 5, 2021
Didn't review the code, but conceptually looks good! And a few doc comments
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
@jreback ping this is greenish, if you approve the changes to the docstring |
jreback
approved these changes
Mar 5, 2021
thanks @attack68 very nice! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Styler.set_na_rep()
andStyler.set_precision()
in favour of, and incorporatingprecision
intoStyler.format()
. Maintains some backwards compatibility with a deprecation warning, the copy mechanics remain broken.Styler.set_na_rep('MISS')
is replaced and equivalent toStyler.format(na_rep='MISS')
Styler.set_precision(5)
is replaced and equivalent toStyler.format(precision=5)
Styler.set_na_rep('MISS').set_precision(5)
is equivalent toStyler.format(na_rep='MISS', precision=5)
Styler.set_precision(5).set_na_rep('MISS')
is equivalent toStyler.format(na_rep='MISS', precision=5)
default_formatter
andmaybe_wrap_formatter
methods tomodule
level.This PR was suggested after review of #40060 as an alternative. It seems to be a simpler and more consistent solution for API.
The text was updated successfully, but these errors were encountered: