Latest xlrd doesn't support xlsx anymore
horzsolt opened this issue · comments
Zsolt Horvath commented
Pandas default Excel engine xlrd starting from its most recent 2.0.0 version doesn't support xlsx format:
https://xlrd.readthedocs.io/en/latest/changes.html#id1
An alternative engine should be used, like openpyxl:
percapitaGDP = pd.read_excel("data/GDPpercapita.xlsx", sheet_name="OECD.Stat export", engine='openpyxl', skiprows=4, skipfooter=1, usecols="A,C:T")
packt-pradeeps commented
Thanks for informing and also providing a workaround