gpt4 book ai didi

Python Pandas read_excel() 模块未找到

转载 作者:行者123 更新时间:2023-11-30 23:30:07 25 4
gpt4 key购买 nike

我目前正在尝试使用 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com