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
- node.js
- 다이어트
- Linux
- 맛집
- mssql
- PyQt5
- flutter
- ASP
- IOS
- swift
- 라즈베리파이
- tensorflow
- GIT
- 날짜
- python
- MS-SQL
- Unity
- urllib
- pandas
- 리눅스
- port
- Excel
- ubuntu
- MySQL
- sqlite
- PyQt
- 함수
- javascript
- 유니티
- PER
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