8000 BUG/ENH: `Styler.format()` always inherits from `.set_na_rep()` by attack68 · Pull Request #40060 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

BUG/ENH: Styler.format() always inherits from .set_na_rep() #40060

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

Closed
wants to merge 15 commits into from
Prev Previous commit
Next Next commit
bug: formatter overwrites na_rep
  • Loading branch information
attack68 committed Feb 25, 2021
commit 7371e44a454c491a12cc58a7599482c8927af03e
4 changes: 3 additions & 1 deletion pandas/io/formats/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@ def format(
have default formatter applied.

The default formatter currently expresses floats and complex numbers with the
precision defined by ``Styler.precision``, leaving all other types unformatted.
precision defined by ``Styler.precision``, leaving all other types unformatted,
and replacing missing values with the string defined in ``Styler.na_rep``, if
set.

Examples
--------
Expand Down
0