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
- AZURE
- r
- tableau
- review
- 챗GPT
- openAI
- 데이터시각화
- 파이썬
- 태블로
- bigquery
- daily
- diary
- ChatGPT
- 데일리
- 북리뷰
- Ga
- GPT
- 서평
- SQL
- 구글애널리틱스
- Adobe
- Python
- 책리뷰
- 생성AI
- Q
- 필사
- datastudio
- 빅쿼리
- 데이터분석
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