Open rioshyb opened 4 months ago
我跑下面这个官方的例子, 生成的代码可以正确执行 https://python.langchain.com/v0.1/docs/integrations/toolkits/pandas/ 测试的模型: model_name="qwen-turbo"
as the
py
variable isn't defined anywhere in the code
这个原因可能是因为代码解释器运行生成的代码的时候,
错误的使用了 py main.py
来运行代码,而系统无法识别 py
正常的情况应该是: python main.py
可以试试在环境变量中手动添加一个 alias 如:
alias py='python3'
看能否解决这个问题
代码: agent = create_pandas_dataframe_agent(llm, df, prefix=custom_prefix, verbose=True)
agent("""validate the following hypothesis with t-test. Null Hypothesis: the survived count of children(age < 12) is less than adult. Alternate Hypothesis: the survived count of children(age < 12) is more than adult.if some python libs are required,import these libs at the beginning'""") 返回是专业的: Action Input: