我目前正在尝试使用 pandas.read_excel() 使用此基本脚本导入 .xlsx 文件
import pandas as pd
x = pd.read_excel("crypt_db.xlsx", "sheet1")
我收到模块('read_excel')未找到错误。我可以得到一些帮助吗?
我的 pandas 已更新到最新版本。
感谢您的帮助
完整回溯
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'read_excel'
最佳答案
安装包xlrd
:
pip install xlrd
关于Python Pandas read_excel() 模块未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20807541/