Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 |
Tags
- swift
- PER
- sqlite
- PyQt5
- 라즈베리파이
- 유니티
- python
- ASP
- 다이어트
- mssql
- IOS
- Excel
- Unity
- node.js
- GIT
- 함수
- PyQt
- 날짜
- ubuntu
- pandas
- Linux
- port
- 맛집
- MySQL
- tensorflow
- 리눅스
- flutter
- MS-SQL
- javascript
- urllib
Archives
목록2025/06/27 (1)
아미(아름다운미소)
컬럼 값 비교
import pandas as pdfrom openpyxl import load_workbookfrom openpyxl.styles import PatternFill# 🔹 파일 경로file_path = '원본.xlsx'# 1. pandas로 데이터 읽기df = pd.read_excel(file_path)# 기준 데이터 (a, b)left = df[['a', 'b']].dropna(subset=['a']).copy()left['a_clean'] = left['a'].astype(str).str.strip().str.lower()left['b_clean'] = left['b'].astype(str).str.strip().str.lower()# 비교 대상 데이터 (c, d)right = df[['c', 'd..
카테고리 없음
2025. 6. 27. 12:12