小编lim*_*ima的帖子

python pandas read_excel错误“值必须是数字或包含通配符的字符串”

我不知道为什么会出现这个错误。

pd.read_excel('data/A.xlsx', usecols=["B", "C"])
Run Code Online (Sandbox Code Playgroud)

然后我得到这个错误:

"Value must be either numerical or a string containing a wild card"
Run Code Online (Sandbox Code Playgroud)

所以我改变我的代码使用nrows所有数据

pd.read_excel('data/A.xlsx', usecols=["B","C"], nrows=172033)
Run Code Online (Sandbox Code Playgroud)

然后就没有错误了,并且创建了一个数据框。

我的 Excel 文件有 172034 行,第一行是列名。

python excel pandas

9
推荐指数
2
解决办法
2万
查看次数

OpenAI API 错误:“没有名为‘openai.embeddings_utils’的模块;‘openai’不是一个包”

我想使用openai.embeddings_utils import get_embeddings 所以已经安装openai

Name: openai
Version: 0.26.5
Summary: Python client library for the OpenAI API
Home-page: https://github.com/openai/openai-python
Author: OpenAI
Author-email: support@openai.com
License: 
Location: /Users/lima/Desktop/Paprika/Openai/.venv/lib/python3.9/site-packages
Requires: aiohttp, requests, tqdm
Required-by: 
Run Code Online (Sandbox Code Playgroud)

这是我的 openai 但为什么不使用 openai.embeddings_utils 呢?

python pip python-3.x openai-api azure-openai

6
推荐指数
2
解决办法
2万
查看次数

标签 统计

python ×2

azure-openai ×1

excel ×1

openai-api ×1

pandas ×1

pip ×1

python-3.x ×1