Replies: 2 comments 1 reply
-
Hey there, @ya0002! 👋 I'm here to assist you with any questions or issues you may have while waiting for a human maintainer. Feel free to ask me anything! To use from langchain_openai import ChatOpenAI
from langchain_experimental.agents import create_pandas_dataframe_agent
import pandas as pd
# Assume agent1 creates a dataframe
df = pd.read_csv("titanic.csv")
# Create a language model instance
llm = ChatOpenAI(model="gpt-3.5-turbo", temperature=0)
# Use the dataframe created by agent1 to create a pandas dataframe agent
agent_executor = create_pandas_dataframe_agent(
llm,
df,
agent_type="tool-calling",
verbose=True
) In this example, the dataframe
|
Beta Was this translation helpful? Give feedback.
-
@dosu My objective is to integrate a pandas DataFrame into a multi-agent collaboration or agentic workflow (link enclosed below). How can I pass the pandas DataFrame to agents within that agentic workflow? Do you have some example code that could help me with this? https://langchain-ai.github.io/langgraph/tutorials/multi_agent/multi-agent-collaboration/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I'm following Basic Multi-agent Collaboration.
I have an agent that creates a dataframe and was wondering how could I use hat dataframe with the agent we get from create_pandas_dataframe_agent since it requires the dataframe to be directly passed to it.
System Info
Running everything on Google colab
Beta Was this translation helpful? Give feedback.
All reactions