From f959fad56e5b16c352d0cff689c52e279b4b13f9 Mon Sep 17 00:00:00 2001 From: Ray Bell Date: Fri, 22 Mar 2024 18:08:26 -0400 Subject: [PATCH] docs: use invoke instead of run (#19457) Updated the deprecated run with invoke Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com> --- docs/docs/integrations/toolkits/pandas.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/docs/integrations/toolkits/pandas.ipynb b/docs/docs/integrations/toolkits/pandas.ipynb index 5d4cf3e6fc0..6244ff0735b 100644 --- a/docs/docs/integrations/toolkits/pandas.ipynb +++ b/docs/docs/integrations/toolkits/pandas.ipynb @@ -116,7 +116,7 @@ } ], "source": [ - "agent.run(\"how many rows are there?\")" + "agent.invoke(\"how many rows are there?\")" ] }, { @@ -154,7 +154,7 @@ } ], "source": [ - "agent.run(\"how many people have more than 3 siblings\")" + "agent.invoke(\"how many people have more than 3 siblings\")" ] }, { @@ -204,7 +204,7 @@ } ], "source": [ - "agent.run(\"whats the square root of the average age?\")" + "agent.invoke(\"whats the square root of the average age?\")" ] }, { @@ -264,7 +264,7 @@ ], "source": [ "agent = create_pandas_dataframe_agent(OpenAI(temperature=0), [df, df1], verbose=True)\n", - "agent.run(\"how many rows in the age column are different?\")" + "agent.invoke(\"how many rows in the age column are different?\")" ] }, {