Python中,使用read_excel时出错。
(模块已导入,在jupyer notebook前面的代码块)
data = pd.read_excel('data//testdata.xls')
data.head()
data.info()
jupyter中运行提示:
没有安装xlrd模块,需要手动安装xlrd模块
解决方法使用pip安装xlrd
在DOS窗口输入:pip install xlrd
再次运行jupyter notebook的代码,就可以了。

Python中,使用read_excel时出错。
(模块已导入,在jupyer notebook前面的代码块)
data = pd.read_excel('data//testdata.xls')
data.head()
data.info()
jupyter中运行提示:
没有安装xlrd模块,需要手动安装xlrd模块
解决方法使用pip安装xlrd
在DOS窗口输入:pip install xlrd
再次运行jupyter notebook的代码,就可以了。