반응형
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
- PANDAS
- hive
- google apps script
- Mac
- Excel
- Google Spreadsheet
- Java
- array
- PostgreSQL
- Kotlin
- math
- matplotlib
- 파이썬
- django
- GIT
- string
- Redshift
- numpy
- Tkinter
- SQL
- Apache
- c#
- Google Excel
- list
- PySpark
- gas
- Python
- dataframe
- Github
Archives
- Today
- Total
달나라 노트
Python Pandas : xlrd.biffh.XLRDError: Excel xlsx file; not supported (read_excel Error) 본문
Python/Python Pandas
Python Pandas : xlrd.biffh.XLRDError: Excel xlsx file; not supported (read_excel Error)
CosmosProject 2022. 2. 11. 01:48728x90
반응형
xlrd.biffh.XLRDError: Excel xlsx file; not supported
pandas의 read_excel method를 사용하다보면 위같은 Error가 발생할 수도 있습니다.
그럴 때에는 아래의 2가지 방법을 체크해볼 수 있습니다.
1. openpyxl을 이용하는 방법.
openpyxl을 설치한 후 read_excel method의 option에 다음 내용을 추가한다.
engine='openpyxl'
import pandas as pd
pd.read_excel('test_file.xlsx', sheet_name='test', engine='openpyxl')
3. pandas의 version을 더 높은 version으로 업데이트한다. (가장 최신 version으로 하는 것도 좋지만 다른 library와의 호환성 등을 생각해서 서서히 update해보는걸 추천합니다.)
728x90
반응형
'Python > Python Pandas' 카테고리의 다른 글
Comments