DB_JOB/작업파일/완료/광역_사이트맵/충청남도/9.서천군/_bnone.py
hehihoho3 df16c98366 백업: DB수집 전체 스냅샷 (공공기관2 정리 전)
공공기관2 작업 중. _temp 몽타주(재생성가능)는 제외.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 18:15:40 +09:00

18 lines
753 B
Python

import openpyxl, sys
sys.stdout.reconfigure(encoding='utf-8')
wb=openpyxl.load_workbook(r'충청남도_서천군.xlsx'); ws=wb.active
# find rows where B is None within data and show context
none_rows=[r for r in range(3,328) if ws.cell(r,2).value is None]
print('B=None rows count:', len(none_rows))
print(none_rows)
print('--- sample context (D E F G H) ---')
for r in none_rows[:15]:
vals=[]
for c,n in [(6,'F'),(7,'G'),(8,'H'),(11,'K'),(12,'L')]:
v=ws.cell(r,c).value
if v is not None: vals.append(f'{n}={str(v)[:18]}')
print(f'R{r} prevB={ws.cell(r-1,2).value} | '+' | '.join(vals))
# also check max B value
bmax=max((ws.cell(r,2).value for r in range(3,328) if isinstance(ws.cell(r,2).value,int)))
print('max B=',bmax)