tl;dr CSV -> XLSXに変換するときにopenpyxl.utils.exceptions.IllegalCharacterErrorや_csv.Errorが出たので解決した コピペで対処したらちょっとハマった 最終的にはこうなった↓ import re import os import openpyxl _ILLEGAL_CHARACTERS_RE = re.compile(r"[\000-\010]|[\013-\014]|[\016-\037]") def _fix_csv(self, csv_file_path: str, fixed_csv_path: str): with open(csv_file_path, "r") as fi: with open(fixed_csv_path, "w") as fo: line = fi.readline() while li
