我不知道为什么会出现这个错误。
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 行,第一行是列名。
我想使用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 呢?