Python Pandas read_excel() 模块未找到

标签 python pandas

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

相关文章:

Python Web 浏览器引擎

python - 向具有特定索引名称的 Pandas DataFrame 添加新行

python - 按第一个、第二个、第三个字符的字母顺序对索引进行排序

python - 来自困惑列表的 Pandas 数据框

pandas - 将值从 1 列转换为多列

python - 读取跨书数据集时出现 CParserError : Error tokenizing data.

python - 阅读 RSS 提要并在 Django 模板中显示它 |提要解析器

python单元测试多个混合

javascript - 将已填写表单字段的 pdf 转换为图像

python - Groupby 多列产品聚合