NNinefold Studio
← 포트폴리오← Portfolio

서로 다른 두 쇼핑몰 엑셀, 하루 한 장 보고서로Two messy store exports, one daily report

A몰과 B몰에서 내려받은 CSV를 합쳐 중복 주문을 제거하고, 채널·일자별 매출을 한 장으로 정리하는 자동화입니다. 형식이 달라도, 값이 비어 있어도, 행을 조용히 버리지 않고 표시합니다.A script that merges two store exports, removes duplicate orders, and produces a one-page daily sales summary. Different column names, blank cells and bad rows are handled — and flagged, never silently dropped.

입력 행Rows in16
중복 병합Duplicates merged2
검토 필요Needs review3
처리 시간Runtime0.1s

입력은 이렇게 생겼습니다What the input looks like

날짜 형식 3종, 통화 표기 혼용, 빈 이메일, 중복 주문, 음수 금액이 섞여 있습니다. 실제 고객 파일에서 흔한 상태입니다.Three date formats, mixed currency strings, missing emails, duplicated orders and one negative amount — all common in real customer files.

order_iddatechannelamount문제Issue
A-10422026.11.15Shopify"₩ 42,000"통화 문자열currency string
A-104315/11/2026Shopify18,000중복 행duplicate row
A-1044(빈칸)Shopify55,000날짜 없음missing date
A-10472026-11-16Shopify-18,000음수 금액negative
B-220111/15/2026NaverKRW 39,000정상ok

출력은 이렇게 나옵니다What comes out

채널Channel주문Orders금액Amount
Shopify8286,000
Naver3104,000
Coupang3120,000
합계Total14510,000

* 예시 수치입니다. 실제 실행 결과는 out/summary.html에서 확인할 수 있습니다.* Illustrative figures. The actual run writes out/summary.html.

  • clean_orders.csv — 공통 스키마로 정리된 원본 데이터clean_orders.csv — one clean schema
  • summary.html — 채널·일자별 요약 (인쇄 가능)summary.html — channel and daily summary, printable
  • run.log — 몇 건이 왜 빠졌는지 기록run.log — why each row was dropped
  • 실패한 행은 지우지 않고 issues 열에 표시Bad rows kept and marked in an issues column

핵심 로직The core logic

외부 라이브러리 없이 표준 라이브러리만 사용합니다. 의뢰인 PC나 사내 서버 어디서든 그대로 돌아갑니다.Standard library only — it runs unchanged on a client PC or an internal server.

def parse_date(value):
    for fmt in ("%Y-%m-%d", "%Y.%m.%d", "%d/%m/%Y", "%m/%d/%Y", "%Y%m%d"):
        try:
            return datetime.strptime(value.strip(), fmt).date()
        except ValueError:
            pass
    return None          # kept, flagged as "unreadable date"

# duplicate orders: keep the richer row, not simply the first one
if new_score > prev_score:
    keyed[order_id] = row
정직한 범위: 이 데모는 샘플 데이터로 실제 실행한 결과입니다. 웹사이트에서 값을 긁어오는 수집 기능은 대상 사이트의 이용약관·robots.txt를 확인한 뒤에만 넣습니다. 로그인 우회·캡차 우회·개인정보 수집은 하지 않습니다. Scope, honestly: this demo runs on sample data. Live scraping is added only after checking the target site's terms and robots.txt. No login bypass, no CAPTCHA bypass, no personal-data harvesting.

이런 요청에 씁니다Typical requests

데모 · Ninefold Studio · Demo · Ninefold Studio · chonnom61482@gmail.com
포트폴리오로Back to portfolio