We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb4c5fd commit 0e19847Copy full SHA for 0e19847
pandas/tests/io/formats/test_format.py
@@ -380,11 +380,10 @@ def test_repr_min_rows(self):
380
def test_repr_float_formatting_html_output(
381
self, data, format_option, expected_values
382
):
383
- if format_option is not None:
384
- with option_context("display.float_format", format_option.format):
385
- df = DataFrame(data)
386
- html_output = df._repr_html_()
387
- assert expected_values in html_output
+ with option_context("display.float_format", format_option.format):
+ df = DataFrame(data)
+ html_output = df._repr_html_()
+ assert expected_values in html_output
388
389
def test_str_max_colwidth(self):
390
# GH 7856
0 commit comments