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 | 31 |
Tags
- 필사
- AWS
- diary
- Q
- 책리뷰
- SQL
- 데이터시각화
- 구글애널리틱스
- AZURE
- openAI
- 생성AI
- review
- r
- 데일리
- bigquery
- 파이썬
- 빅쿼리
- 챗GPT
- GPT
- ChatGPT
- 북리뷰
- 데이터분석
- Adobe
- daily
- tableau
- Python
- 태블로
- datastudio
- Ga
- 서평
Archives
- Today
- Total
목록stackoverflow (1)
가볍게 배우고 깊게 즐기고 오래 남기기
[Python | Error 해결] 'cp949' codec can't decode byte 0xec in position 51: illegal multibyte sequence - 구글링 해서 찾았는데도 같은 에러 만날 때 한 큐 해결방법 (chardet)
pandas read_csv를 써서 한글을 사용하더라도 UTF-8을 쓰던 CP949를 쓰던 구글링 stackoverflow를 사용해도 가틍ㄴ decode 에러가 뜰때가 있다. 이럴 땐 chardet으로 파일 상관없이 인코딩 패스하는 방법이 있다. AS-IS df = pd.read_csv("path/to/file.csv", encoding='cp949') df = pd.read_csv("path/to/file.csv", encoding='cp949') ERROR : 'cp949'codec can't decode byte 0xec in position 51: illegal multibyte sequence TO-BE import chardet with open(FILEPATH, 'rb') as f: resu..
Programming & Tip/Python
2024. 1. 5. 15:13