Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

XLRDError: Excel xlsx file; not supported

pandas.read_excel('cat.xlsx', engine='openpyxl')
Comment

python pandas read_excel xlrderror excel xlsx file not supported

# Make sure pandas is upgraded and that openpyxl is installed then try again
pip install pandas --upgrade
pip install openpyxl
Comment

xlrd.biffh.xlrderror: excel xlsx file; not supported

As noted in the release email, linked to from the release tweet and noted in large orange warning that appears on the front page of the documentation, and less orange, but still present, in the readme on the repository and the release on pypi:

xlrd has explicitly removed support for anything other than xls files.

In your case, the solution is to:

make sure you are on a recent version of Pandas, at least 1.0.1, and preferably the latest release. 1.2 will make his even clearer.
install openpyxl: https://openpyxl.readthedocs.io/en/stable/
change your Pandas code to be:
df1 = pd.read_excel(
     os.path.join(APP_PATH, "Data", "aug_latest.xlsm"),
     engine='openpyxl',
)
Comment

PREVIOUS NEXT
Code Example
Python :: python sleep random 
Python :: maximize window in selenium 
Python :: python start simplehttpserver 
Python :: jupyter notebook reload module 
Python :: Colorcodes Discord.py 
Python :: bored 
Python :: python console pause 
Python :: install docx python 
Python :: horizontal line matplotlib python 
Python :: round python with list 
Python :: python: remove specific values in a dataframe 
Python :: keras plot history 
Python :: how to print a list without brackets and commas python 
Python :: AssertionError: Torch not compiled with CUDA enabled 
Python :: local image embed discord py 
Python :: Creating an admin user in django terminal 
Python :: how to save image opencv 
Python :: python remove non letters from string 
Python :: get mouse click coordinates python turtle 
Python :: convert python list to text file 
Python :: python get full path 
Python :: save clipboard data win32clipboard python 
Python :: unzip file python 
Python :: python find smallest element in dictionary 
Python :: pd.options.display.max_columns()pd.options.display.max_row() 
Python :: make string numeric pandas 
Python :: dj_database_url 
Python :: pandas shuffle rows 
Python :: how to open a software using python 
Python :: python count null values in dataframe 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =