ETC/에러노트
# [Error][Pandas]UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8c in position 15: invalid start byte
ForrestPark
2024. 12. 19. 22:01
📌 본 포스팅은 utf-8 error 에 대한 내용을 다룹니다.
📌 [참고]
🐞 UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8c in position 15: invalid start byte
- 시도별 전출입 인구수.xlsx 읽어올때 utf 8 에러 가 발생.
📌📌📌 [해결]
df = pd.read_excel("./K11DataVisual-6일차/part04/data/시도별 전출입 인구수.xlsx",
engine='openpyxl',
header=0)
engine 으로 openpyxl 설정하고 header = False 설정을 하여 해결함.