Skip to content

Commit 6a4f8e3

Browse files
committed
Handle missing border style case
1 parent 76e4b09 commit 6a4f8e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/io/excel.py

+4
Original file line numberDiff line numberDiff line change
@@ -1644,15 +1644,19 @@ def write_cells(self, cells, sheet_name=None, startrow=0, startcol=0,
16441644
(('border', 'top', 'color', 'rgb'), 'top_color'),
16451645
(('border', 'top', 'color'), 'top_color'),
16461646
(('border', 'top', 'style'), 'top'),
1647+
(('border', 'top'), 'top'),
16471648
(('border', 'right', 'color', 'rgb'), 'right_color'),
16481649
(('border', 'right', 'color'), 'right_color'),
16491650
(('border', 'right', 'style'), 'right'),
1651+
(('border', 'right'), 'right'),
16501652
(('border', 'bottom', 'color', 'rgb'), 'bottom_color'),
16511653
(('border', 'bottom', 'color'), 'bottom_color'),
16521654
(('border', 'bottom', 'style'), 'bottom'),
1655+
(('border', 'bottom'), 'bottom'),
16531656
(('border', 'left', 'color', 'rgb'), 'left_color'),
16541657
(('border', 'left', 'color'), 'left_color'),
16551658
(('border', 'left', 'style'), 'left'),
1659+
(('border', 'left'), 'left'),
16561660
]
16571661

16581662
def _convert_to_style(self, style_dict, num_format_str=None):

0 commit comments

Comments
 (0)