diff --git a/pandas/formats/excel.py b/pandas/formats/excel.py index 256f494b4fe09..01834591b917d 100644 --- a/pandas/formats/excel.py +++ b/pandas/formats/excel.py @@ -161,8 +161,6 @@ def _border_style(self, style, width): width = float(width[:-2]) if width < 1e-5: return None - if width < 1: - width_name = 'hair' elif width < 2: width_name = 'thin' elif width < 3.5: diff --git a/pandas/tests/formats/test_to_excel.py b/pandas/tests/formats/test_to_excel.py index 016d6dc792893..20246cb8e8864 100644 --- a/pandas/tests/formats/test_to_excel.py +++ b/pandas/tests/formats/test_to_excel.py @@ -50,11 +50,11 @@ {'font': {'strike': False}}), # - strike ('text-decoration: line-through', - {'font': {'strike': True, 'underline': False}}), + {'font': {'strike': True}}), ('text-decoration: underline line-through', - {'font': {'strike': True, 'underline': True}}), + {'font': {'strike': True, 'underline': 'single'}}), ('text-decoration: underline; text-decoration: line-through', - {'font': {'strike': True, 'underline': False}}), + {'font': {'strike': True}}), # - color ('color: red', {'font': {'color': 'FF0000'}}), ('color: #ff0000', {'font': {'color': 'FF0000'}}),