if written_cell_data:
    existing_value, existing_cell_format_dict = self.written_cells[sheet_name][
        cell]
updated_format = dict(existing_cell_format_dict or {}, **cell_format_dict)
pandas: how to format cells after exporting to Excel