python to excel
-
drawio 파일을 python 코드를 활용해 엑셀 데이터로 변환하는 방법Python 2025. 2. 14. 11:34
Drawio에서 ERD용도로 사용하던 drawio파일을 python 코드를 활용해 엑셀 데이터로 변환하는 방법import xml.etree.ElementTree as ETimport pandas as pdimport redef clean_text(text): """ 불필요한 HTML 태그 및 특정 문자열 제거 """ text = re.sub(r'', '', text) # 모든 HTML 태그 제거 text = re.sub(r'p style="[^"]*"', '', text) # 같은 스타일 태그 제거 text = re.sub(r'" in value: # 테이블 이름 감지 table_name = clean_text(value.split("")[1].split(..