ImportError: Install xlrd >= 0.9.0 for Excel support when using pd.readexcel to read .xlsx file : never happened before

China☆狼群 提交于 2019-12-06 00:28:19

Try writing following command into the terminal pip install xlrd

And then import the xlrd alongside with pandas import xlrd and import pandas as pd

I was getting an error "ImportError: Install xlrd >= 1.0.0 for Excel support" on Pycharm for below code

import pandas as pd
df2 = pd.read_excel("data.xlsx")
print(df2.head(3))
print(df2.tail(3))

Solution : pip install xlrd

It resolved error after using this.

Also no need to use "import xlrd" in program

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!