Skip to content

Commit

Permalink
docs: use invoke instead of run (langchain-ai#19457)
Browse files Browse the repository at this point in the history
Updated the deprecated run with invoke

Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
  • Loading branch information
2 people authored and rahul-trip committed Mar 27, 2024
1 parent d8e57e8 commit 9a6d27e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/docs/integrations/toolkits/pandas.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
}
],
"source": [
"agent.run(\"how many rows are there?\")"
"agent.invoke(\"how many rows are there?\")"
]
},
{
Expand Down Expand Up @@ -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\")"
]
},
{
Expand Down Expand Up @@ -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?\")"
]
},
{
Expand Down Expand Up @@ -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?\")"
]
},
{
Expand Down

0 comments on commit 9a6d27e

Please sign in to comment.